void FetchWorldData(GeoCoordinate coordinates) { _tileScale = _tileWidthInVoxels / MapboxConvenience.GetTileScaleInMeters((float)coordinates.Latitude, _zoom); var bounds = new GeoCoordinateBounds(); bounds.Center = coordinates; _raster.SetGeoCoordinateBoundsZoom(bounds, _zoom); _elevation.SetGeoCoordinateBoundsZoom(bounds, _zoom); }
public void Initialize(Tile.Parameters parameters) { _center = MapboxConvenience.TileIdToLatitudeLongitude(parameters.Id.X, parameters.Id.Y, parameters.Id.Z); _tileScaleInMeters = MapboxConvenience.GetTileScaleInMeters(_center.x, parameters.Id.Z); OnInitialized(parameters); }