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.
Thanx Chris.  The concern I have is that something like :

    zoomToMaxExtent()

will work with GYM layers but for OSM.

All examples I see of folks zooming in on an area with OSM as a base layer use :

    setCenter(new OpenLayers.LonLat(lon, lat), zoom)

So I guess I have to do some if's to do a setCenter when the base layer is OSM.

Cheers,

Yves

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to