Exemple #1
0
        public MapTileInfo ZoomIn(string quadIndex)
        {
            if (Zoom == 23)
            {
                return(this);
            }

            TileUtils.QuadKeyToTileXY(string.Concat(TileUtils.TileXYToQuadKey(X, Y, Zoom), quadIndex), out int x0, out int y0, out int z0);
            return(new MapTileInfo(x0, y0, z0, this.TileSize));
        }
Exemple #2
0
        public MapTileInfo ZoomOut()
        {
            if (Zoom == 1)
            {
                return(this);
            }

            var quadKey = TileUtils.TileXYToQuadKey(X, Y, Zoom);

            TileUtils.QuadKeyToTileXY(quadKey.Substring(0, quadKey.Length - 1), out int x0, out int y0, out int z0);
            return(new MapTileInfo(x0, y0, z0, this.TileSize));
        }