summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-02-19 16:01:01 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-02-19 16:01:01 +0100
commit38513bbf07ec90aca2ccc4bddb4672b9c38e67b7 (patch)
tree63cfc2ffa65faff4fb6fb6c8c841890ce96b4362
parentd71a788fe9ae8c5d89834b2b09167df1b366951e (diff)
downloadChimère-38513bbf07ec90aca2ccc4bddb4672b9c38e67b7.tar.bz2
Chimère-38513bbf07ec90aca2ccc4bddb4672b9c38e67b7.zip
Fix default map template when no map layer is available
-rw-r--r--chimere/templates/chimere/blocks/map.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/chimere/templates/chimere/blocks/map.html b/chimere/templates/chimere/blocks/map.html
index 99c8738..64248ac 100644
--- a/chimere/templates/chimere/blocks/map.html
+++ b/chimere/templates/chimere/blocks/map.html
@@ -28,7 +28,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}};