It's zoomToExtent, not setExtent

This commit is contained in:
Tom Hughes 2012-03-15 17:01:16 +00:00
parent 13a98cf7eb
commit 770a990ed9
3 changed files with 5 additions and 5 deletions

View file

@ -79,7 +79,7 @@
var bbox = new OpenLayers.Bounds(minlon, minlat, maxlon, maxlat);
var centre = bbox.getCenterLonLat();
map.setExtent(proj(bbox));
map.zoomToExtent(proj(bbox));
addBoxToMap(bbox);
$("#loading").hide();