Добавил кнопку на редактирование
This commit is contained in:
parent
c37eca97e8
commit
80a4c6e929
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user