private void Start()
        {
            // Get the coordinates of the map corners
            double tlx, tly, brx, bry;

            OnlineMaps.instance.GetCorners(out tlx, out tly, out brx, out bry);

            // Ceate a new request and subscribe to OnComplete event
            OnlineMapsBingMapsElevation.GetElevationByBounds(key, tlx, tly, brx, bry, 32, 32).OnComplete += OnComplete;
        }
    public override void StartDownloadElevationTile(Tile tile)
    {
        if (TryLoadFromCache(tile))
        {
            return;
        }

        double lx, ty, rx, by;

        map.projection.TileToCoordinates(tile.x, tile.y, tile.zoom, out lx, out ty);
        map.projection.TileToCoordinates(tile.x + 1, tile.y + 1, tile.zoom, out rx, out @by);
        OnlineMapsBingMapsElevation request = OnlineMapsBingMapsElevation.GetElevationByBounds(OnlineMapsKeyManager.BingMaps(), lx, ty, rx, @by, tileWidth, tileHeight);

        request.OnFinish += r => OnTileDownloaded(tile, request);
    }
Beispiel #3
0
 public void StartDownloadElevation(double sx, double sy, double ex, double ey)
 {
     elevationRequest             = OnlineMapsBingMapsElevation.GetElevationByBounds(bingAPI, sx, sy, ex, ey, 32, 32);
     elevationRequest.OnComplete += OnElevationRequestComplete;
 }