Setting Min / Max Zoom for Bing Maps in Silverlight

I am using Silverlight sdk for Bing Maps. I have a map, I have my PushPins. Now I want to disconnect the user from scaling so far, they see the whole world and limit it only in the USA. It would be nice if there was something as simple as Map.MaxZoom, but no. Any help?

+4
source share
1 answer
public class MyMapMode : Microsoft.Maps.MapControl.Core.MercatorMode { public Range<double> MapZoomRange = new Range<double>(1.0, 10.0); protected override Range<double> GetZoomRange(Location center) { return this.MapZoomRange; } } 

you may try!

+3
source

Source: https://habr.com/ru/post/1311453/


All Articles