Not sure If I am doing something wrong but I'm following the examples on here
and other places to declare bounds and send them to this method but it just
says Object doesn't support this property/method when I try to change the
map extent by using this code below, any help on changing it to work greatly
appreciated.

var mybounds = new OpenLayers.Bounds(-1693861.59, 6469059.01, -107949.94,
7643808.37); 

       
 map.zoomToExtent(mybounds);


I have also tried putting the bounds into the object but still no luck-
map.zoomToExtent(new OpenLayers.Bounds(-1693861.59, 6469059.01, -107949.94,
7643808.37));
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/map-zoomToExtent-bounds-doesn-t-seem-to-be-working-tp5550721p5550721.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to