diff options
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 |
commit | 7db3c03eed446df0f2dfb84dec9467cf43589e63 (patch) | |
tree | d7cf1f8c7d31f3a8a51d2c532c6b6ba82f440280 /ishtar_common/templates/base.html | |
parent | b665a5ecec08e057e78320c43c702ebefb5a7a29 (diff) | |
download | Ishtar-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.html | 8 |
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" %} |