ThinkGeo.com    |     Documentation    |     Premium Support

Setting minimum and maximum zoom

BaseMap.zip (329.2 KB)

I may have missed but have not seen a way to set minimum and maximum zoom on the map. The was once a setting for this. I have attached the source.

Thanks,
James R.

Hi James,

You didn’t miss it — the Blazor MapView genuinely had no zoom limit setting. They exist on the Desktop and Mobile MapView only.

We’ve added them in 15.0.0-beta123. You can do following in the razor now, both apply to the zoom buttons, the zoom bar, the mouse wheel and pinch.

<MapView 
         .....
         MinimumScale="9028"          @* stop zooming in here *@
         MaximumScale="9244672.3"     @* stop zooming out here *@
          ......
>

Thanks,
Ben