[OpenLayers-Users] OpenLayers and zoom level with Bing maps

Andreas Hocevar ahocevar at opengeo.org
Sun Jan 3 11:30:37 EST 2010


Hi,

On 2010-01-03 11:21, Marco Usai wrote:
> You can notice the difference going on Bing Maps directly and comparing two localities: on bing.com/maps/ the zoom level is higher and you can see all street names, while with the lower zoom level of OpenLayers, some street names are are hidden.
>
>
> There is a particular explanation/solution for this ?
>   

By default, OpenLayers uses just 16 zoom levels with the Bing layer. You
can change that by configuring the layer by adding
numZoomLevels: 21
to the layer options, e.g.

var shaded = new OpenLayers.Layer.VirtualEarth("Shaded", {
    type: VEMapStyle.Shaded,
    numZoomLevels: 21
});


Regards,
Andreas.

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




More information about the Users mailing list