Добавил кнопку на редактирование

This commit is contained in:
zakhy 2025-02-19 10:13:02 +07:00
parent c37eca97e8
commit 80a4c6e929

View File

@ -529,9 +529,15 @@
layerSwitcher.addControl(new ol.control.Button({
html: "Создать слой",
handleClick: function () {
window.location.href = '{% url '
create_layer
' %}'
window.location.href = '{% url 'create_layer' %}'
}
}), 'bottom');
map.addControl(layerSwitcher)
layerSwitcher.addControl(new ol.control.Button({
html: "Редактировать слой",
handleClick: function () {
window.location.href = '{% url 'edit_layer' %}'
}
}), 'bottom');
map.addControl(layerSwitcher)