|
@@ -33,7 +33,7 @@
|
|
_MAP_LATITUDE = {{ config_manager.getValueConsume('location', 'location', 'latitude') }};
|
|
_MAP_LATITUDE = {{ config_manager.getValueConsume('location', 'location', 'latitude') }};
|
|
_MAP_LONGITUDE = {{ config_manager.getValueConsume('location', 'location', 'longitude') }};
|
|
_MAP_LONGITUDE = {{ config_manager.getValueConsume('location', 'location', 'longitude') }};
|
|
{% else %}
|
|
{% else %}
|
|
- function setCoordinatesFromConfig() {
|
|
|
|
|
|
+ function setCoordinatesFromConfig(drawMapNow) {
|
|
try {
|
|
try {
|
|
$.ajax({
|
|
$.ajax({
|
|
url: "{{ path('admin_config_manager_global_ajax') }}",
|
|
url: "{{ path('admin_config_manager_global_ajax') }}",
|
|
@@ -47,6 +47,9 @@
|
|
if (data.result) {
|
|
if (data.result) {
|
|
_MAP_LATITUDE = data.config.latitude;
|
|
_MAP_LATITUDE = data.config.latitude;
|
|
_MAP_LONGITUDE = data.config.longitude;
|
|
_MAP_LONGITUDE = data.config.longitude;
|
|
|
|
+ if (drawMapNow) {
|
|
|
|
+ drawMap(_MAP_LATITUDE, _MAP_LONGITUDE);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
});
|
|
});
|
|
} catch (e) {
|
|
} catch (e) {
|