OpenLayers's Google Terrain map can only zoom to 16. If setting the numZoomLevels to any value bigger than 16, then when zooming into those levels, the base map stay unchanged (which is a bug), which in turn causes vector layer to be misaligned, because the vector layer (the polygons) has been zoom in "correctly".
The maps from Google server has 20 levels. But within Openlayers, those levels are not being drawn. And it acts like it is drawing. JK From: Nicholas Efremov-Kendall [mailto:[email protected]] Sent: Wednesday, June 15, 2011 3:20 PM To: JK Chen Cc: [email protected] Subject: Re: [OpenLayers-Users] RE: Google Terrian map does not align with geometry rather, the layers can support different zoom levels, maybe there's a conflict there. On Wed, Jun 15, 2011 at 4:18 PM, Nicholas Efremov-Kendall <[email protected]<mailto:[email protected]>> wrote: Hi JK, The googles layers actually have different zoom levels, sometimes going to hybrid goes to 21, physical goes to 22 and such. Look up the maxzoom for the terrain layer, that might fix your problem. On Wed, Jun 15, 2011 at 4:05 PM, JK Chen <[email protected]<mailto:[email protected]>> wrote: These misalignments happen at zoom levels greater than or equal to 16. As you might know, Google Terrain provides 20 zoom levels. Apparently this is a bug within Openlayers. My current "workaround" is to set the numZoomlevels to 16 for Google Terrain map. Thanks. JK From: [email protected]<mailto:[email protected]> [mailto:[email protected]<mailto:[email protected]>] On Behalf Of JK Chen Sent: Wednesday, June 15, 2011 1:52 PM To: [email protected]<mailto:[email protected]> Subject: [OpenLayers-Users] Google Terrian map does not align with geometry Hi, My application draws many geometries (basically, polygons, each representing captured aerial images). All of my geometries align correctly with Google Street, Satellite, Hybrid maps, but not correctly with Google Terrian map. While in Google Terrian map, when I zoom in to say zoom levels more than 10, the mis-alignment starts to show up, and another issue also starts showing up, the rectangle of my geometry becomes movable. All of these are simply wrong. These will render the application unreliable which means useless for our users. Can anyone share some thoughts about these behaviors? How to fix them? How Reliable is OpenLayers? I'm seeing many un-reliability and inconsistence. Thanks. JK _______________________________________________ Users mailing list [email protected]<mailto:[email protected]> http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
