[Users] Adding a feature to map zooms to hightest zoom level: why?
Robert Buckley
robertdbuckley at yahoo.com
Fri Jan 14 17:38:50 CET 2011
Hi,
thanks a lot Andreas!
I managed to play around until it worked. i don´t know if the code is well
formed, but at least it works.
mapPanel.layers.add(clone);
var bounds = new OpenLayers.Bounds.fromArray(clone.get("llbbox"))
bounds.transform(epsg4326, map.getProjectionObject());
map.zoomToExtent(bounds)
Thanks,
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20110114/955240c5/attachment.htm
More information about the Users
mailing list