summaryrefslogtreecommitdiff
path: root/chimere/templates/main_map.html
diff options
context:
space:
mode:
authoretienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864>2010-04-05 18:38:21 +0000
committeretienne <etienne@9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864>2010-04-05 18:38:21 +0000
commit5f6363cbb2a499ef5009efbe26d9a3b6fc6e16b2 (patch)
treea5cb0ee5ae3187eef0c8c9280bc1b11691452202 /chimere/templates/main_map.html
parent04371d1191f094eb6a2e1c16a37fe2f6a590ee36 (diff)
downloadChimère-5f6363cbb2a499ef5009efbe26d9a3b6fc6e16b2.tar.bz2
Chimère-5f6363cbb2a499ef5009efbe26d9a3b6fc6e16b2.zip
Add the current selected item to the permalink - #92
git-svn-id: http://www.peacefrogs.net/svn/chimere/trunk@76 9215b0d5-fb2c-4bbd-8d3e-bd2e9090e864
Diffstat (limited to 'chimere/templates/main_map.html')
-rw-r--r--chimere/templates/main_map.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/chimere/templates/main_map.html b/chimere/templates/main_map.html
index 3d01d9f..526bf32 100644
--- a/chimere/templates/main_map.html
+++ b/chimere/templates/main_map.html
@@ -31,12 +31,12 @@ var map_layer = {{map_layer|safe}};
var permalink_label = '{%trans "Permalink"%}';
var dynamic_categories{%if dynamic_categories %} = 1{%endif%};
var default_area{%if default_area %} = new Array({{default_area.upper_left_corner.x}}, {{default_area.upper_left_corner.y}}, {{default_area.lower_right_corner.x}}, {{default_area.lower_right_corner.y}}){%endif%};
-var p_zoom;
-{%if p_zoom %}p_zoom={{p_zoom}};
-var p_lat={{p_lat}};
-var p_lon={{p_lon}};
-var p_display_submited={{p_display_submited}};
-var p_checked_categories = [{{p_checked_categories}}];{%endif%}
+var p_zoom{%if p_zoom %} = {{p_zoom}}{%endif%};
+var p_lat{%if p_lat %} = {{p_lat}}{%endif%};
+var p_lon{%if p_lon %} = {{p_lon}}{%endif%};
+var p_display_submited{%if p_display_submited %} = {{p_display_submited}}{%endif%};
+var p_checked_categories{%if p_checked_categories %} = [{{p_checked_categories}}];{%endif%}
+var p_current_feature{% if p_current_feature %} = {{p_current_feature}}{%endif%};
init();
// --> </script>{% endblock %}
{% block footer %}<div id='map-footer'>{{ block.super }} - {% trans "Map"%} © <a href='http://openstreetmap.org/'>OpenStreetMap</a></div>