From 594b06d8d8ac5ba6db749e14289425b635b67228 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 14 Nov 2016 16:10:35 +0100 Subject: Update to new permalink management --- static/saclay/css/styles.css | 1 + templates/chimere/blocks/map.html | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/static/saclay/css/styles.css b/static/saclay/css/styles.css index d2c6e63..5d0933a 100644 --- a/static/saclay/css/styles.css +++ b/static/saclay/css/styles.css @@ -225,6 +225,7 @@ h3.warn{ } #permalink{ + display: none; position:absolute; z-index:20; right:280px; diff --git a/templates/chimere/blocks/map.html b/templates/chimere/blocks/map.html index 3633146..634cc58 100644 --- a/templates/chimere/blocks/map.html +++ b/templates/chimere/blocks/map.html @@ -141,9 +141,13 @@ $("#{{map_id}}").show(); $("#{{map_id}}").chimere(chimere_init_options); {% if zoom %} - if (!permalink) $('#maps').chimere('zoom', {'area':{{zoom}} }); + if (!permalink) $('#{{map_id}}').chimere('zoom', {'area':{{zoom}} }); {% endif %} + function update_permalink(){ + $('#{{map_id}}').chimere('update_permalink'); + }; + // init layer selection $(function() { {% for layer_name, js, def in map_layers %} -- cgit v1.2.3