Hello, could I get some clarification on how the scaling of the zoom levels work? I understand what the number represents but not how the actual scale value comes to be? What I want to do is, be able to set certain scale levels of actual distance units, so that the scalebar shows those levels/distance units.
For example, I have a bunch of custom zoom levels I add to the map like so:
var partitionedZoomLevelSet = new ZoomLevelSet();
partitionedZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(myMap.ZoomLevelSet.GetZoomLevels()[0].Scale * 3));
partitionedZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(myMap.ZoomLevelSet.GetZoomLevels()[0].Scale * 1.5));
partitionedZoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(myMap.ZoomLevelSet.GetZoomLevels()[0].Scale));
// repeat for a total of 50 zoom levels
myMap.ZoomLevelSet = partitionedZoomLevelSet;
These were arbitrary ones I played around with. But what I want to do is just say something like “at 50 meters on the scale bar is this zoom level, at 10 feet on the scale bar is the next zoom level, etc.”, regardless of the map unit.
Is anything like that possible? I’m using version 13 dlls if that matters