убрал пока что управление слоями

This commit is contained in:
zakhy 2025-02-24 11:16:53 +07:00
parent 41f71fe132
commit 3bf35435c6

View File

@ -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')
// Всплывающее окно