[OpenLayers-Users] Bing zoom levels in 2.11

Andy Harrison andyh at alh.me.uk
Mon Jun 6 10:06:14 EDT 2011


On 03/06/2011 19:19, Andreas Hocevar wrote:
> This required some deep digging, but what I came up with is very
> pleasing. See http://trac.osgeo.org/openlayers/ticket/3338 again. With
> this patch applied (and to be safe, also the one for
> http://trac.osgeo.org/openlayers/ticket/3342), you can configure a
> subset of zoom levels just by setting maxResolution and numZoomLevels,
> e.g.
>
> var road = new OpenLayers.Layer.Bing({
>      key: apiKey,
>      type: "Road",
>      maxResolution: 76.43702827453613,
>      numZoomLevels: 3
> });
>
> Please test and report back if this works for you or if you're seeing
> any issues.

Yes! Thanks very much, excellent job. It works exactly how I want it.

andy



More information about the Users mailing list