It's zoomToExtent, not setExtent
This commit is contained in:
parent
13a98cf7eb
commit
770a990ed9
3 changed files with 5 additions and 5 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue