From ae9fca09a4d0b03f0814c025cd1b752b42cdf4d5 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 20 Jan 2016 23:33:07 +0100 Subject: Wrok on OL3 transition --- chimere/templates/chimere/blocks/head_chimere.html | 10 ++++++---- chimere/templates/chimere/blocks/head_jme.html | 3 +++ chimere/templates/chimere/blocks/map.html | 5 +++-- 3 files changed, 12 insertions(+), 6 deletions(-) (limited to 'chimere/templates') diff --git a/chimere/templates/chimere/blocks/head_chimere.html b/chimere/templates/chimere/blocks/head_chimere.html index f0e214e..0554f4c 100644 --- a/chimere/templates/chimere/blocks/head_chimere.html +++ b/chimere/templates/chimere/blocks/head_chimere.html @@ -1,7 +1,8 @@ -{% for css_url in MAP_CSS_URLS %} +{% if not is_edit %}{% for css_url in MAP_CSS_URLS %} {% endfor %} {% for js_url in MAP_JS_URLS %} {% endfor %} +{% endif %} {% if routing %}{% endif %} {% if enable_clustering %}{% endif %} @@ -15,11 +16,12 @@ @@ -11,6 +13,7 @@ +{% endcomment %} diff --git a/chimere/templates/chimere/blocks/map.html b/chimere/templates/chimere/blocks/map.html index 764d07b..065fc34 100644 --- a/chimere/templates/chimere/blocks/map.html +++ b/chimere/templates/chimere/blocks/map.html @@ -46,8 +46,9 @@ $(function(){ {% if p_routing_steps %}chimere_init_options["routing_steps_lonlat"] = [{{ p_routing_steps }}];{% endif %} {% if p_routing_transport %}chimere_init_options["routing_transport"] = "{{ p_routing_transport }}";{% endif %} {% if p_routing_speed %}chimere_init_options["routing_speed"] = "{{ p_routing_speed }}";{% endif %} - chimere_init_options["icon_offset"] = new OpenLayers.Pixel({{icon_offset_x}}, - {{icon_offset_y}}); + // chimere_init_options["icon_offset"] = new OpenLayers.Pixel({{icon_offset_x}}, + // {{icon_offset_y}}); + chimere_init_options["icon_offset"] = ({{icon_offset_x}}, {{icon_offset_y}}); chimere_init_options["dynamic_categories"] = {{ dynamic_categories }}; {% if p_display_submited %}chimere_init_options["display_submited"] = {{ p_display_submited }};{% endif %} chimere_init_options["checked_categories"] = [{% for cc in checked_categories %}{% if forloop.counter0 > 0 %}, {% endif %}{{cc}}{% endfor %}]; -- cgit v1.2.3