Just curious - why is VirtualEarthZoomLevelSet.ZoomLevel19.Scale negative? How can I get ZoomLevel19.Scale and ZoomLevel20.Scale?
Thanks!
Just curious - why is VirtualEarthZoomLevelSet.ZoomLevel19.Scale negative? How can I get ZoomLevel19.Scale and ZoomLevel20.Scale?
Thanks!
Greg,
This is because Virtual earth has fewer zoom levels then other maps. We set them to negative number so that the map does not try and snap to them. I don’t think you can get lower as they provide no imagery for that size. The best that could be done is we could do something to try and stretch the images but we haven’t implemented that. I am pretty sure that is why the last few zoom levels are blank.
David
Could I use the GoogleZoomLevelSet instead? BTW you can zoom in beyond level 18 in VirtualEarth AFAIK…
Gregory,
The GoogleZoomLevelSet is exactly same with default MapSuite zoomlevelSet while the VE ZoomLevel set will lack 2 zoomlevel set(only 18 zoomlevel sets).
You could switch between them by setting it to ZoomLevelSet property in MapControl:
winformsMap1.ZoomLevelSet = virtualEarthZoomLevelSet;
When you using the VE Zoomlevel Set, it is expected to keep the same with ZoomLevel18 when you continue to zoomIn, while it seems throw exception(I think it should be considered as a bug) when you continue zoomIn. So when you define the VEZoomLevel set, please try to change its value as following, in this way, it will go around this problem:
VirtualEarthZoomLevelSet virtualEarthZoomLevelSet = new VirtualEarthZoomLevelSet();
virtualEarthZoomLevelSet.ZoomLevel19.Scale = virtualEarthZoomLevelSet.ZoomLevel18.Scale;
virtualEarthZoomLevelSet.ZoomLevel20.Scale = virtualEarthZoomLevelSet.ZoomLevel18.Scale;
Any more quesitons just feel free to let me know.
Thanks.
Yale