summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-02-19 16:01:46 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-02-19 16:01:46 +0100
commit4a2b71f1647fba01a040573c500c34ffbdd66d34 (patch)
treee6d0214ee161c29f391604f6b65d8191ba5140a5
parent0a593ffbd7ca726f0b38224954456d180db2a574 (diff)
downloadChimère - projet de référence-4a2b71f1647fba01a040573c500c34ffbdd66d34.tar.bz2
Chimère - projet de référence-4a2b71f1647fba01a040573c500c34ffbdd66d34.zip
Fix default map template when no map layer is available
-rw-r--r--templates/chimere/blocks/map.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/chimere/blocks/map.html b/templates/chimere/blocks/map.html
index 57cfe95..3015500 100644
--- a/templates/chimere/blocks/map.html
+++ b/templates/chimere/blocks/map.html
@@ -41,7 +41,7 @@ $(function(){
{% if MOBILE %}chimere_init_options["mobile"] = true;{% endif %}
{% if enable_clustering %}chimere_init_options["enable_clustering"] = true;{% endif %}
chimere_init_options["default_icon"] = '{{STATIC_URL}}img/marker-green.png';
- chimere_init_options["map_layers"] = [{{js_map_layers|safe|escape}}];
+ {% if js_map_layers %}chimere_init_options["map_layers"] = [{{js_map_layers|safe|escape}}];{% endif %}
chimere_init_options['permalink_label'] = '{%trans "Permalink"%}';
chimere_init_options['permalink_element'] = document.getElementById('permalink');
chimere_init_options['routing'] = {{routing}};