Hi, While working with Bing and OSM (or any XYZ) I experienced a problem, that OSM would be fooled by Bing when the latter is the base layer.
So, if Bing itself is right but other XYZ layers are wrong on top of if, my solution is to set the 'serverResolutions' option on all XYZ layers, so that the 'getXYZ' computation would do longer depend on the baseLayer's current zoom. Jean-François Gigand - Geonef Paris, France - http://geonef.fr/ 2011/8/19 Andreas Hocevar <[email protected]>: > 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 >> [email protected] >> http://lists.osgeo.org/mailman/listinfo/openlayers-users > > > > -- > Andreas Hocevar > OpenGeo - http://opengeo.org/ > Expert service straight from the developers. > > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
