summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-05-16 18:29:50 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-05-16 18:29:50 +0200
commit102b657b4abb795793220a444233031b2b235c41 (patch)
tree18d41fb69d481adfa0dc1b8b5c424eaa7d265413
parente3c1b37245f7bd2c7eaa6c27864f98a8197c5919 (diff)
downloadChimère - projet de référence-102b657b4abb795793220a444233031b2b235c41.tar.bz2
Chimère - projet de référence-102b657b4abb795793220a444233031b2b235c41.zip
LayerSwitcher + extra JS for map in templates
-rw-r--r--templates/chimere/blocks/map.html2
-rw-r--r--templates/chimere/main_map.html1
2 files changed, 3 insertions, 0 deletions
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}}
<div id='popup'></div>
+ <div id='layerSwitcher'></div>
<div id='main-map'></div>
<script type="text/javascript">
$("#main-map").show();