[OpenLayers-Trac] [OpenLayers] #1243: allow for non-discrete resolution/zoom levels (fractional zoom)
OpenLayers
trac at openlayers.org
Wed Jan 9 03:00:31 EST 2008
#1243: allow for non-discrete resolution/zoom levels (fractional zoom)
----------------------+-----------------------------------------------------
Reporter: tschaub | Owner: tschaub
Type: feature | Status: assigned
Priority: minor | Milestone:
Component: Map | Version: 2.5
Resolution: | Keywords:
State: |
----------------------+-----------------------------------------------------
Comment (by tschaub):
Replying to [comment:2 bartvde]:
> Tim, I tested this with WMS layers and it works like a charm. Can't test
it with commercial layers though.
>
> One question though: it appeared like this won't work if the map has a
scales array, so I had to use minScale and maxScale to get it to work. But
I guess that's to be expected.
Hmm. Maybe I need more info. If I create a map like
{{{
var options = {
scales: [442943842.5, 221471921.25, 110735960.625,
55367980.3125, 27683990.15625, 13841995.078125, 6920997.5390625,
3460498.76953125, 1730249.384765625, 865124.6923828125,
432562.34619140625, 216281.17309570312, 108140.58654785156,
54070.29327392578, 27035.14663696289, 13517.573318481445]
};
map = new OpenLayers.Map('map', options);
var wms = new OpenLayers.Layer.WMS(
"OpenLayers WMS",
"http://labs.metacarta.com/wms/vmap0",
{layers: 'basic'}
);
map.addLayer(wms);
}}}
everything works as I'd expect. How are you setting your scales array?
--
Ticket URL: <http://trac.openlayers.org/ticket/1243#comment:7>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list