Hi,
I need to restricte user from zoomig too low an high say between zoomlvele 3 to zoomlevel 18.Can you plz help me out in this.
Regards
Hi,
I need to restricte user from zoomig too low an high say between zoomlvele 3 to zoomlevel 18.Can you plz help me out in this.
Regards
Hi vivek,
Here is the code,
Map1.ZoomLevelSet.CustomZoomLevels.Add(Map1.ZoomLevelSet.ZoomLevel03);
Map1.ZoomLevelSet.CustomZoomLevels.Add(Map1.ZoomLevelSet.ZoomLevel04);
Map1.ZoomLevelSet.CustomZoomLevels.Add(Map1.ZoomLevelSet.ZoomLevel05);
Map1.ZoomLevelSet.CustomZoomLevels.Add(Map1.ZoomLevelSet.ZoomLevel06);
Map1.ZoomLevelSet.CustomZoomLevels.Add(Map1.ZoomLevelSet.ZoomLevel07);
Map1.ZoomLevelSet.CustomZoomLevels.Add(Map1.ZoomLevelSet.ZoomLevel08);
Map1.ZoomLevelSet.CustomZoomLevels.Add(Map1.ZoomLevelSet.ZoomLevel09);
Map1.ZoomLevelSet.CustomZoomLevels.Add(Map1.ZoomLevelSet.ZoomLevel10);
Map1.ZoomLevelSet.CustomZoomLevels.Add(Map1.ZoomLevelSet.ZoomLevel11);
Map1.ZoomLevelSet.CustomZoomLevels.Add(Map1.ZoomLevelSet.ZoomLevel12);
Map1.ZoomLevelSet.CustomZoomLevels.Add(Map1.ZoomLevelSet.ZoomLevel13);
Map1.ZoomLevelSet.CustomZoomLevels.Add(Map1.ZoomLevelSet.ZoomLevel14);
Map1.ZoomLevelSet.CustomZoomLevels.Add(Map1.ZoomLevelSet.ZoomLevel15);
Map1.ZoomLevelSet.CustomZoomLevels.Add(Map1.ZoomLevelSet.ZoomLevel16);
Map1.ZoomLevelSet.CustomZoomLevels.Add(Map1.ZoomLevelSet.ZoomLevel17);
Map1.ZoomLevelSet.CustomZoomLevels.Add(Map1.ZoomLevelSet.ZoomLevel18);
Regards,
Edgar
Why not
WpfMap1.MaximumScale = WpfMap1.ZoomLevelSet.ZoomLevel04.Scale
WpfMap1.MinimumScale = WpfMap1.ZoomLevelSet.ZoomLevel18.Scale
?
Good Carlos, your solution is better! Thanks for helping on this.
Regards,
Edgar