summaryrefslogtreecommitdiff
path: root/chimere/static/main_map.js
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/static/main_map.js')
-rw-r--r--chimere/static/main_map.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/chimere/static/main_map.js b/chimere/static/main_map.js
index eabb1c7..606bd96 100644
--- a/chimere/static/main_map.js
+++ b/chimere/static/main_map.js
@@ -503,8 +503,11 @@ function init(){
}
/* if from a permalink */
if (p_zoom) {
- var p_centerLonLat = new OpenLayers.LonLat(p_lon, p_lat);
- p_centerLonLat.transform(epsg_display_projection, epsg_projection);
+ var p_centerLonLat = centerLonLat;
+ if(p_lon){
+ var p_centerLonLat = new OpenLayers.LonLat(p_lon, p_lat);
+ p_centerLonLat.transform(epsg_display_projection, epsg_projection);
+ }
map.setCenter(p_centerLonLat, p_zoom);
if (p_display_submited) {
document.getElementById('display_submited_check').checked = true;