[OpenLayers-Users] Bing Zoom Layer and Google Zoom Layer aligning

Andreas Hocevar ahocevar at opengeo.org
Fri Aug 19 05:41:15 EDT 2011


Hi,

you may want to have a look at http://openlayers.org/dev/examples/bing-tiles-restrictedzoom.html for an example on how to limit the set of available resolutions. Note that Bing does not have what is known as zoom level 0 in Google and OSM.

Andreas.

On Aug 19, 2011, at 02:35 , static101 wrote:

> First off, I only started using the OpenLayer framework a few days ago. So
> please be gentle.
> 
> I have two map layers, a Bing layer (using the new OpenLayers.Layer.Bing
> constructor), and a Google Streets layer. (I had more but simplified to just
> these two for debugging purposes).
> 
> I also have some tiles that get added (using OpenLayers.Layer.XYZ).
> 
> For the Google layer (or Open Street Maps layer) the tiles get overlaid just
> perfectly with the zoom. However on Bing they do not. I discovered that the
> zoom number is for bing is one less than Google. I think this is why my
> tiles are not being overlaid correctly. Showing the same map area, Google
> reports the zoom is 10, while Bing is 9. 
> 
> I need to realign Bing to match Google. I tried using minLevelZoom and
> numZoomLevels but this didn't seem to work.
> 
> Can anyone point me in the correct direction?
> 
> Thank you.
> 
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Bing-Zoom-Layer-and-Google-Zoom-Layer-aligning-tp6701507p6701507.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users



-- 
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.



More information about the Users mailing list