[OpenLayers-Users] Bing zoom levels in 2.11

Andreas Hocevar ahocevar at opengeo.org
Wed Jun 1 11:24:50 EDT 2011


Hi,

use restrictedMinZoom and numZoomLevels. The latter starts counting at
zoom level 0, regardless of the restrictedMinZoom setting.

Andreas.

On Wed, Jun 1, 2011 at 5:20 PM, Andy Harrison <andyh at alh.me.uk> wrote:
> Hi all,
>
> What is the correct way to modify/restrict the zoom range for the new Bing
> layer?
>
> new OpenLayers.Layer.Bing({
>                name: "Bing Aerial",
>                key: bingKey,
>                type: "Aerial",
>                'sphericalMercator': true,
>                transitionEffect:'resize'
>            });
>
> I've tried parameters such as "numZoomLevels" "minZoomLevel" etc but I can't
> seem to be able restrict the zoom levels.
>
> cheers,
>
> Andy
>
> _______________________________________________
> 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