diff --git a/apps/main/templates/main_index.html b/apps/main/templates/main_index.html index 7d218d0..ef87941 100644 --- a/apps/main/templates/main_index.html +++ b/apps/main/templates/main_index.html @@ -537,21 +537,24 @@ } layersBtn.classList.toggle("selected") }) - layerSwitcher.addControl(new ol.control.Button({ - html: "Создать слой", - handleClick: function () { - window.location.href = '{% url 'create_layer' %}' - } - }), 'bottom'); - // map.addControl(layerSwitcher) + // layerSwitcher.addControl( + // new ol.control.Button({ + // html: "Создать слой", + // handleClick: function () { + // window.location.href = '{% url 'create_layer' %}' + // } + // }), 'bottom'); - layerSwitcher.addControl(new ol.control.Button({ - html: "Редактировать слои", - handleClick: function () { - window.location.href = '{% url 'layers_list' %}' - } - }), 'bottom'); - // map.addControl(layerSwitcher) + // layerSwitcher.addControl( + // new ol.control.Button({ + // html: "Редактировать слои", + // handleClick: function () { + // window.location.href = '{% url 'layers_list' %}' + // } + // }), 'bottom' + // ); + + map.addControl(layerSwitcher) const element = document.getElementById('popup') // Всплывающее окно