I would like to just enable or just show the scales from level 5 to 12. can I do that?
I know we can enable layers to just be visible between level 5 and 12.
I want a little bit more: do not show other scale options on the scale bar.
Thanks,
How to limit the scales on scale bar?
Hi Guangming,
You can directly create your custom zoomLevels, then assign it to map.
Here is a simple sample:
ZoomLevelSet zs = new ZoomLevelSet();
zs.CustomZoomLevels.Add(new ZoomLevel(100000));
zs.CustomZoomLevels.Add(new ZoomLevel(1000));
map.ZoomLevelSet = zs;
Regards,
Don
thanks, that does work.
Hi Guangming,
You’re welcome.
Regards,
Don