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.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/chimere/static/main_map.js b/chimere/static/main_map.js
index ee742a2..52d694f 100644
--- a/chimere/static/main_map.js
+++ b/chimere/static/main_map.js
@@ -465,8 +465,9 @@ function init(){
map.addLayers([map_layer]);
map.events.register('click', map, hidePopUp);
- map.events.register('moveend', map, refreshMapItems);
-
+ if (dynamic_categories){
+ map.events.register('moveend', map, refreshMapItems);
+ }
/* if from a permalink */
if (p_zoom) {
var p_centerLonLat = new OpenLayers.LonLat(p_lon, p_lat);