summaryrefslogtreecommitdiff
path: root/ishtar_common/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-02-04 12:46:49 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-04-24 19:38:56 +0200
commit3f698444f50b2030d7feec21c6f8a60669484bb5 (patch)
treed7cf1f8c7d31f3a8a51d2c532c6b6ba82f440280 /ishtar_common/templates
parentf530c2b19904787864b6a9cc1e988da11e524b4b (diff)
downloadIshtar-3f698444f50b2030d7feec21c6f8a60669484bb5.tar.bz2
Ishtar-3f698444f50b2030d7feec21c6f8a60669484bb5.zip
Map: manage default extent and zoom to current extent
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r--ishtar_common/templates/base.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/ishtar_common/templates/base.html b/ishtar_common/templates/base.html
index 86b4c8b58..0a4f58e24 100644
--- a/ishtar_common/templates/base.html
+++ b/ishtar_common/templates/base.html
@@ -79,9 +79,13 @@
{% endcompress %}
{% block extra_head %}
{% endblock %}
- {% if DEBUG %}<script type='text/javascript'>
+ <script type='text/javascript'>
+ map_default_center = '{{SITE_PROFILE.default_center.wkt}}';
+ map_default_zoom = '{{SITE_PROFILE.default_zoom}}';
+ {% if DEBUG %}
debug = true;
- </script>{% endif %}
+ {% endif %}
+ </script>
</head>
<body data-spy="scroll" data-target="#window-fixed-menu"{% if current_theme%} id='{{current_theme}}'{%endif%}>
{% include "navbar.html" %}