summaryrefslogtreecommitdiff
path: root/chimere/static/edit_map.js
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/static/edit_map.js')
-rw-r--r--chimere/static/edit_map.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/chimere/static/edit_map.js b/chimere/static/edit_map.js
index 5000b75..7449a26 100644
--- a/chimere/static/edit_map.js
+++ b/chimere/static/edit_map.js
@@ -79,7 +79,10 @@ function init(){
map.events.register('click', map, setMarker);
/* 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);
}
}