diff --git a/apps/main/templates/main_index.html b/apps/main/templates/main_index.html index 99c92bc..177f630 100644 --- a/apps/main/templates/main_index.html +++ b/apps/main/templates/main_index.html @@ -116,29 +116,6 @@ await mapCore.initialize(); - // Инициализация переключателя слоев - const LayerSwitcherInner = document.getElementById('LayerSwitcherInner') - const layerSwitcher = new LayerSwitcher(mapCore, LayerSwitcherInner); - - layerSwitcher.addButton( - new ol.control.Button({ - html: "Создать слой", - handleClick: function () { - window.location.href = '{% url 'create_layer' %}'; - } - }), 'bottom' - ); - - layerSwitcher.addButton( - new ol.control.Button({ - html: "Редактировать слои", - handleClick: function () { - window.location.href = '{% url 'layers_list' %}'; - } - }), 'bottom' - ); - - // Инициализация менеджеров маркеров const gtoLayer = new ol.layer.Vector({source: new ol.source.Vector()}); gtoLayer.set('title', 'Горнотранспортное оборудование') @@ -269,6 +246,28 @@ await updateMarkers(); setInterval(updateMarkers, 3000); + + // Инициализация переключателя слоев + const LayerSwitcherInner = document.getElementById('LayerSwitcherInner') + const layerSwitcher = new LayerSwitcher(mapCore, LayerSwitcherInner); + + layerSwitcher.addButton( + new ol.control.Button({ + html: "Создать слой", + handleClick: function () { + window.location.href = '{% url 'create_layer' %}'; + } + }), 'bottom' + ); + + layerSwitcher.addButton( + new ol.control.Button({ + html: "Редактировать слои", + handleClick: function () { + window.location.href = '{% url 'layers_list' %}'; + } + }), 'bottom' + ); }); function formatDateToRussian(date) { diff --git a/mfssogr/app_settings.py b/mfssogr/app_settings.py index bf56801..128f250 100644 --- a/mfssogr/app_settings.py +++ b/mfssogr/app_settings.py @@ -42,7 +42,7 @@ INSTALLED_APPS = [ """Информация о приложении """ SITE_TITLE = "Многофункциональная система безопасности ОГР" SITE_TITLE_S = "МФСБ ОГР" -APP_VER = "1.0.13.2" +APP_VER = "1.0.13.3" APP_VEK = "2023 - 2025гг" APP_COPPIRIGHT = "Многофункциональная система безопасности ОГР"