summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/base.html
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
commit7db3c03eed446df0f2dfb84dec9467cf43589e63 (patch)
treed7cf1f8c7d31f3a8a51d2c532c6b6ba82f440280 /ishtar_common/templates/base.html
parentb665a5ecec08e057e78320c43c702ebefb5a7a29 (diff)
downloadIshtar-7db3c03eed446df0f2dfb84dec9467cf43589e63.tar.bz2
Ishtar-7db3c03eed446df0f2dfb84dec9467cf43589e63.zip
Map: manage default extent and zoom to current extent
Diffstat (limited to 'ishtar_common/templates/base.html')
-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" %}