From 7f7c333f114eee34dd089543e84028eb18f448c4 Mon Sep 17 00:00:00 2001 From: etienne Date: Mon, 1 Mar 2010 21:11:40 +0000 Subject: Load only one time the categories when DYNAMIC_CATEGORIES is disabled git-svn-id: http://www.peacefrogs.net/svn/chimere/trunk@68 9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864 --- chimere/static/main_map.js | 5 +++-- chimere/static/styles.css | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'chimere/static') 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); diff --git a/chimere/static/styles.css b/chimere/static/styles.css index c6a0b97..217cba3 100644 --- a/chimere/static/styles.css +++ b/chimere/static/styles.css @@ -388,6 +388,10 @@ border-radius: 10px; background-color:#ffdbdb; } +p.warning{ +text-align:center; +} + #logos{ text-align:center; z-index:5; -- cgit v1.2.3