summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}};