убрал пока что управление слоями
This commit is contained in:
parent
41f71fe132
commit
3bf35435c6
@ -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')
|
||||
// Всплывающее окно
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user