예제 #1
0
        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));
        }
예제 #2
0
        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));
        }
예제 #3
0
 public void SetUpScaling(AbstractMap map)
 {
     map.SetWorldRelativeScale(Mathf.Cos(Mathf.Deg2Rad * (float)map.CenterLatitudeLongitude.x));
 }