From 102b657b4abb795793220a444233031b2b235c41 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 16 May 2016 18:29:50 +0200 Subject: LayerSwitcher + extra JS for map in templates --- templates/chimere/blocks/map.html | 2 ++ templates/chimere/main_map.html | 1 + 2 files changed, 3 insertions(+) diff --git a/templates/chimere/blocks/map.html b/templates/chimere/blocks/map.html index df664b9..18c0d3d 100644 --- a/templates/chimere/blocks/map.html +++ b/templates/chimere/blocks/map.html @@ -90,6 +90,8 @@ $(function(){ $('#maps').chimere('zoom', {'area':{{zoom}} }); {% endif %} + {{extra_map_def|safe}} + // init layer selection /* $(function() { {% for layer_name, js, def in map_layers %} diff --git a/templates/chimere/main_map.html b/templates/chimere/main_map.html index 00de374..856bcdc 100644 --- a/templates/chimere/main_map.html +++ b/templates/chimere/main_map.html @@ -30,6 +30,7 @@ {% block content %} {{block.super}} +