From 3bf35435c6c5b20dcd71afb71592feb37118c877 Mon Sep 17 00:00:00 2001 From: zakhy <=> Date: Mon, 24 Feb 2025 11:16:53 +0700 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=B1=D1=80=D0=B0=D0=BB=20=D0=BF=D0=BE?= =?UTF-8?q?=D0=BA=D0=B0=20=D1=87=D1=82=D0=BE=20=D1=83=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=81=D0=BB=D0=BE=D1=8F?= =?UTF-8?q?=D0=BC=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/main/templates/main_index.html | 31 ++++++++++++++++------------- 1 file changed, 17 insertions(+), 14 deletions(-) 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') // Всплывающее окно