summaryrefslogtreecommitdiff
path: root/chimere/static/edit_area.js
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/static/edit_area.js')
-rw-r--r--chimere/static/edit_area.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/chimere/static/edit_area.js b/chimere/static/edit_area.js
index 7695e6b..95f0121 100644
--- a/chimere/static/edit_area.js
+++ b/chimere/static/edit_area.js
@@ -47,6 +47,9 @@ function init(){
map.events.register('moveend', map, updateForm);
/* zoom to the appropriate extent */
if (!zoomToCurrentExtent(map)){
- map.setCenter(centerLonLat, 12);
+ if(p_zoom)
+ map.setCenter(centerLonLat, p_zoom);
+ else
+ map.setCenter(centerLonLat, 12);
}
}