[OpenLayers-Users] maxExtent not passed to an OSM layer
christopher.schmidt at nokia.com
christopher.schmidt at nokia.com
Wed Sep 1 16:48:43 EDT 2010
On Sep 1, 2010, at 4:41 PM, ext Yves Moisan wrote:
>
> Hi All,
>
> The maxExtent map option doesn't seem to be carried over to an XYZ type
> of layer. Looking at the initialize function of an XYZ layer, I see the
> maxExtent is hardcoded whereas it is not in e.g. a Google type. Why is
> that so ? The difference in behaviour means we can't use a maxExtent
> with OSM as a base layer : it just doesn't zoom in. Works with Bing,
> Google or Yahoo though. But I want OSM as my base layer ...
OSM tile grid is (like all of our other existing layers) based on the maxExtent
of the layer. Changing the maxExtent would change the extent of the tiles, and
then nothing would line up.
If you are interested in changing this, check out:
http://trac.openlayers.org/ticket/2741
Which has some code and discussion of the issue.
-- Chris
More information about the Users
mailing list