diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2010-11-17 00:10:15 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2010-11-17 00:10:15 +0100 |
commit | 0a7d381bc78283d31356743c0b315bfae7ecb284 (patch) | |
tree | f3a8b3e48e2da334d121fddae3ee03fe427c665e /chimere/static/main_map.js | |
parent | 98b2ff68d82090bc0ec951a499580a682e4adff3 (diff) | |
download | Chimère-1.0.1.tar.bz2 Chimère-1.0.1.zip |
Zoom on an object designed in a tiny urlv1.0.1
Diffstat (limited to 'chimere/static/main_map.js')
-rw-r--r-- | chimere/static/main_map.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chimere/static/main_map.js b/chimere/static/main_map.js index cd770ae..c56f8a6 100644 --- a/chimere/static/main_map.js +++ b/chimere/static/main_map.js @@ -245,6 +245,7 @@ function updateCategories(response){ /* load geo objects with an AJAX request */ function loadGeoObjects(){ if (!first){ updateCheckedCategories(); } + else if (p_checked_categories){checked_categories = p_checked_categories;} first = false; /* 0 stand for all categories */ if (!checked_categories) checked_categories = '0'; @@ -369,6 +370,7 @@ function putMarker(layer, mark) { showPop(feature); clicked = true; updateDetail(feature.pk); + map.setCenter(feature.lonlat, 17); p_current_feature = null; } return feature; |