|
@@ -30,8 +30,8 @@
|
|
var _MAP_LATITUDE = 0;
|
|
var _MAP_LATITUDE = 0;
|
|
var _MAP_LONGITUDE = 0;
|
|
var _MAP_LONGITUDE = 0;
|
|
{% if config_manager is defined %}
|
|
{% if config_manager is defined %}
|
|
- _MAP_LATITUDE = {{ config_manager.getValueConsume('location', 'location', 'latitude') }};
|
|
|
|
- _MAP_LONGITUDE = {{ config_manager.getValueConsume('location', 'location', 'longitude') }};
|
|
|
|
|
|
+ _MAP_LATITUDE = {{ config_manager.getValue('location', 'location', 'latitude')|default(0) }};
|
|
|
|
+ _MAP_LONGITUDE = {{ config_manager.getValue('location', 'location', 'longitude')|default(0) }};
|
|
{% else %}
|
|
{% else %}
|
|
function setCoordinatesFromConfig(drawMapNow) {
|
|
function setCoordinatesFromConfig(drawMapNow) {
|
|
try {
|
|
try {
|
|
@@ -65,8 +65,8 @@
|
|
|
|
|
|
{% if draw is defined %}
|
|
{% if draw is defined %}
|
|
<script src="{{ asset('bundles/leaflet/js/leaflet-map-draw.js') }}"></script>
|
|
<script src="{{ asset('bundles/leaflet/js/leaflet-map-draw.js') }}"></script>
|
|
-{% endif %}
|
|
|
|
|
|
+{% endif %}
|
|
{% if extra_js is defined %}
|
|
{% if extra_js is defined %}
|
|
<script src="{{ script_google_maps }}"></script>
|
|
<script src="{{ script_google_maps }}"></script>
|
|
<script src="{{ asset('bundles/leaflet/js/leaflet-map-widget.js') }}"></script>
|
|
<script src="{{ asset('bundles/leaflet/js/leaflet-map-widget.js') }}"></script>
|
|
-{% endif %}
|
|
|
|
|
|
+{% endif %}
|