Hello,

It seems you forget that getZoomForExtent() is related to map or layer
http://dev.openlayers.org/releases/OpenLayers-2.10/doc/apidocs/files/OpenLayers/Map-js.html#OpenLayers.Map.getZoomForExtent
You also made a mistake by using *Openlayers* and not
*OpenLayers*(javascript is case sensitive)

A sample below you can test in
http://openlayers.org/dev/examples/baseLayers.html
map.setCenter(new
OpenLayers.LonLat(-88.7544446426224,13.6255370441885),map.getZoomForExtent(new
OpenLayers.Bounds(-88.69996,13.6920867,-88.530255,13.7854783)));

Regards

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

Reply via email to