I'm confused about what the limitations are as far as zooming in on layers like Google and Bing (Virtual Earth)? If I simply add a Google layer to the web control, I can't zoom in as tight as I can using the actual Google or Bing websites. Is this a limitation of the SDK or am I doing something wrong with scale settings / zoom levels? I also noticed that ESRI has an ArcGIS Explorer that can zoom in even further than the Bing website?
Google / Bing Zoom Limitations
After further investigation, it looks like Google layers give you a bit deeper zoom capability than Vitual Earth layers. In other words you can zoom in closer in Google than Virtual Earth. The question still stands, is this a limitation of ThinkGeo’s implementation or is this a limitation of the Virtual Earth API?
Hi Jason,
Yes, to make sure all SphericalMercator overlays work fine, the zoom levels are limited. For instance, the the default zoomlevels of VirtualOverlay is 17, but we can change it to 20 by the code as following:
<script language="javascript" type="text/javascript">
OnMapCreating = function(map) {
OpenLayers.Layer.VirtualEarth.prototype.MAX_ZOOM_LEVEL = 20;
OpenLayers.Layer.VirtualEarth.prototype.RESOLUTIONS = [
1.40625,
0.703125,
0.3515625,
0.17578125,
0.087890625,
0.0439453125,
0.02197265625,
0.010986328125,
0.0054931640625,
0.00274658203125,
0.001373291015625,
0.0006866455078125,
0.00034332275390625,
0.000171661376953125,
0.0000858306884765625,
0.00004291534423828125,
0.00002145767211914062,
0.00001072883605957031,
0.00000536441802978515
];
}
</script>
Thanks,
Johnny