Hi,
I have few questions about the definition of the DefaultZoom and th scaleBar.
So far, I used the zoom by default with the associated scale.
The scalebar is displayed.
When the zoomlevel equals to ZoomLevel01, the scaleBar displayed is 0 as in the screenShot
When the zoomlevel equals to ZoomLevel20, the scaleBar displayed is 100 meters.
I would like to increase the scale minimum and the scale maximum.
So the code is :
double d = map.CurrentScale;
map.ZoomLevelSet.ZoomLevel01.Scale = Math.Round(d, 10);
map.ZoomLevelSet.ZoomLevel02.Scale = Math.Round(map.ZoomLevelSet.ZoomLevel01.Scale / 2, 10);
map.ZoomLevelSet.ZoomLevel03.Scale = Math.Round(map.ZoomLevelSet.ZoomLevel02.Scale / 2, 10);
map.ZoomLevelSet.ZoomLevel04.Scale = Math.Round(map.ZoomLevelSet.ZoomLevel03.Scale / 2, 10);
map.ZoomLevelSet.ZoomLevel05.Scale = Math.Round(map.ZoomLevelSet.ZoomLevel04.Scale / 2, 10);
map.ZoomLevelSet.ZoomLevel06.Scale = Math.Round(map.ZoomLevelSet.ZoomLevel05.Scale / 2, 10);
map.ZoomLevelSet.ZoomLevel07.Scale = Math.Round(map.ZoomLevelSet.ZoomLevel06.Scale / 2, 10);
map.ZoomLevelSet.ZoomLevel08.Scale = Math.Round(map.ZoomLevelSet.ZoomLevel07.Scale / 2, 10);
map.ZoomLevelSet.ZoomLevel09.Scale = Math.Round(map.ZoomLevelSet.ZoomLevel08.Scale / 2, 10);
map.ZoomLevelSet.ZoomLevel10.Scale = Math.Round(map.ZoomLevelSet.ZoomLevel09.Scale / 2, 10);
map.ZoomLevelSet.ZoomLevel11.Scale = Math.Round(map.ZoomLevelSet.ZoomLevel10.Scale / 2, 10);
map.ZoomLevelSet.ZoomLevel12.Scale = Math.Round(map.ZoomLevelSet.ZoomLevel11.Scale / 2, 10);
map.ZoomLevelSet.ZoomLevel13.Scale = Math.Round(map.ZoomLevelSet.ZoomLevel12.Scale / 2, 10);
map.ZoomLevelSet.ZoomLevel14.Scale = Math.Round(map.ZoomLevelSet.ZoomLevel13.Scale / 2, 10);
map.ZoomLevelSet.ZoomLevel15.Scale = Math.Round(map.ZoomLevelSet.ZoomLevel14.Scale / 2, 10);
map.ZoomLevelSet.ZoomLevel16.Scale = Math.Round(map.ZoomLevelSet.ZoomLevel15.Scale / 2, 10);
map.ZoomLevelSet.ZoomLevel17.Scale = Math.Round(map.ZoomLevelSet.ZoomLevel16.Scale / 2, 10);
map.ZoomLevelSet.ZoomLevel18.Scale = Math.Round(map.ZoomLevelSet.ZoomLevel17.Scale / 2, 10);
map.ZoomLevelSet.ZoomLevel19.Scale = Math.Round(map.ZoomLevelSet.ZoomLevel18.Scale / 2, 10);
map.ZoomLevelSet.ZoomLevel20.Scale = Math.Round(map.ZoomLevelSet.ZoomLevel19.Scale / 2, 10);
map.MinimumScale = Math.Round(map.ZoomLevelSet.ZoomLevel19.Scale / 2, 10);
map.MaximumScale = Math.Round(d, 10);
Display when the ZoomLevel is 01 ;
Display when the zoomLevel is 17 :
Display when the ZoomLevel is upper to 17
When the LevelZoom is upper than the ZoomLevel17 then the scalebar disapear.
Is it Normal ? I have this case because the ZoomLevel is too hight (upper than 10 meters) ?
2) The meaning of the scaleBar :
I believed that the scale bar represented a distance.
Thus if I draw a line similar to the scaleBar then the calculation of the distance should be the same.
As you can see in the screen shot, the scalebar represents a distance of 20 meters but the calculation of the distance is equal to 42 meters.
IS there normal ? Or I misunderstand the meaning of the scaleBar ?
Thanks a lot for your help
Regards.
Steph.