diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2010-11-17 00:11:30 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2010-11-17 00:11:30 +0100 |
| commit | 7f052955ca5a16890fdbf67bc6c7c71a08e3f6cc (patch) | |
| tree | a72e68d0abfc13a4e758eabdc5f221de7f97fd1b /chimere/static/main_map.js | |
| parent | aac24a825632ec6198cb830db41700d95e7a7b3b (diff) | |
| parent | 0a7d381bc78283d31356743c0b315bfae7ecb284 (diff) | |
| download | Chimère-7f052955ca5a16890fdbf67bc6c7c71a08e3f6cc.tar.bz2 Chimère-7f052955ca5a16890fdbf67bc6c7c71a08e3f6cc.zip | |
Merge branch 'v1.0'
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; |
