diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-01-21 20:08:15 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-01-21 20:08:15 +0100 |
| commit | 0a593ffbd7ca726f0b38224954456d180db2a574 (patch) | |
| tree | 21ced1780ac5a40a2201034db58ab2cb4312031d /templates/chimere/blocks/map.html | |
| parent | f66510453c93bc6c395781bf1d11fbd47bbac86c (diff) | |
| download | Chimère-0a593ffbd7ca726f0b38224954456d180db2a574.tar.bz2 Chimère-0a593ffbd7ca726f0b38224954456d180db2a574.zip | |
OL3 adaptations
Diffstat (limited to 'templates/chimere/blocks/map.html')
| -rw-r--r-- | templates/chimere/blocks/map.html | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/chimere/blocks/map.html b/templates/chimere/blocks/map.html index 5c85ddb..57cfe95 100644 --- a/templates/chimere/blocks/map.html +++ b/templates/chimere/blocks/map.html @@ -57,8 +57,9 @@ $(function(){ {% if p_routing_end_lon %}chimere_init_options["routing_end_lon"] = {{ p_routing_end_lon }};{% endif %} {% if p_routing_end_lat %}chimere_init_options["routing_end_lat"] = {{ p_routing_end_lat }};{% endif %} {% if p_routing_steps %}chimere_init_options["routing_steps_lonlat"] = [{{ p_routing_steps }}];{% 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 %}]; @@ -82,11 +83,11 @@ $(function(){ } $("#main-map").chimere(chimere_init_options); {% if zoom %} - $('#maps').chimere('zoom', {'area':{{zoom}} }); + //$('#maps').chimere('zoom', {'area':{{zoom}} }); {% endif %} // init layer selection - $(function() { + /* $(function() { {% for layer_name, js, def in map_layers %} $('#layer_list').append("<li><input type='radio' value='{{forloop.counter0}}' name='layer_type' id='layer_{{forloop.counter}}'{% if def %} checked='checked'{% endif %}><label for='layer_{{forloop.counter}}'>{{layer_name}}</li>");{% endfor %} {% for subcat in subcat_layer %} @@ -108,6 +109,7 @@ $(function(){ }); highlight_selected_categories(); }); + */ </script> <div id='marker_hover'><div id='marker_hover_content'></div></div> <div id='cluster_list'></div> |
