public void SetUpScaling(AbstractMap map) { var scaleFactor = Mathf.Pow(2, (map.AbsoluteZoom - map.InitialZoom)); map.SetWorldRelativeScale(scaleFactor * Mathf.Cos(Mathf.Deg2Rad * (float)map.CenterLatitudeLongitude.x)); }
public void SetUpScaling(AbstractMap map) { var referenceTileRect = Conversions.TileBounds(TileCover.CoordinateToTileId(map.CenterLatitudeLongitude, map.AbsoluteZoom)); map.SetWorldRelativeScale((float)(map.Options.scalingOptions.unityTileSize / referenceTileRect.Size.x)); }
public void SetUpScaling(AbstractMap map) { map.SetWorldRelativeScale(Mathf.Cos(Mathf.Deg2Rad * (float)map.CenterLatitudeLongitude.x)); }