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.js2
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;