From a2d219ab1294987740f4cffafd8c84a05e94d52b Mon Sep 17 00:00:00 2001 From: zakhy <=> Date: Wed, 2 Apr 2025 17:16:40 +0700 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B2=D0=B5=D0=B7=D0=B4=D0=B5=20=D0=B3=D1=80=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=86=D1=8B=20=D0=9F=D0=A0=D0=93=D0=A0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #TODO. Написать скрипт обновления, который переносит из настроек в слой. --- apps/gto/templates/gto_main.html | 16 ++++++++++++++++ apps/main/templates/main_index.html | 12 ++++++++++++ .../templates/wklocation_map.html | 13 +++++++++++++ 3 files changed, 41 insertions(+) diff --git a/apps/gto/templates/gto_main.html b/apps/gto/templates/gto_main.html index d5731ff..0921beb 100644 --- a/apps/gto/templates/gto_main.html +++ b/apps/gto/templates/gto_main.html @@ -213,6 +213,7 @@ + {{ start_page_list_block|add:-1}}" aria-controls="mypaginator" data-dt-idx=" @@ -221,6 +222,7 @@ + {{ start_page_list_block|add:-1}}" style="padding: .3rem .5rem;">.. @@ -256,6 +258,7 @@ + {{ end_page_list_block|add:1}}" aria-controls="mypaginator" data-dt-idx=" @@ -264,6 +267,7 @@ + {{ end_page_list_block|add:1}}" style="padding: .3rem .5rem;">.. @@ -428,6 +432,18 @@ scanLayer.set('title', 'Ортофотоплан') mapCore.addLayer(scanLayer) + const mineBorderLayer = new ol.layer.Vector({ + source: new ol.source.Vector({ + url: '/{{ prgr }}', + format: new ol.format.KML({extractStyles: false}), + + }), + style: polygonStyleFunction, + }); + mineBorderLayer.set('title', 'Границы ПРГР') + + mapCore.addLayer(mineBorderLayer) + // Инициализация статических слоев const createdLayersManager = new CreatedLayersManager({ url: '{% url 'layers' %}', diff --git a/apps/main/templates/main_index.html b/apps/main/templates/main_index.html index 1e589eb..3da0256 100644 --- a/apps/main/templates/main_index.html +++ b/apps/main/templates/main_index.html @@ -174,6 +174,18 @@ scanLayer.set('title', 'Ортофотоплан') mapCore.addLayer(scanLayer) + const mineBorderLayer = new ol.layer.Vector({ + source: new ol.source.Vector({ + url: '/{{ prgr }}', + format: new ol.format.KML({extractStyles: false}), + + }), + style: polygonStyleFunction, + }); + mineBorderLayer.set('title', 'Границы ПРГР') + + mapCore.addLayer(mineBorderLayer) + // Инициализация статических слоев const createdLayersManager = new CreatedLayersManager({ url: '{% url 'layers' %}', diff --git a/apps/workerslocation/templates/wklocation_map.html b/apps/workerslocation/templates/wklocation_map.html index fcb869f..6b135a6 100644 --- a/apps/workerslocation/templates/wklocation_map.html +++ b/apps/workerslocation/templates/wklocation_map.html @@ -110,6 +110,19 @@ scanLayer.set('title', 'Ортофотоплан') mapCore.addLayer(scanLayer) + const mineBorderLayer = new ol.layer.Vector({ + source: new ol.source.Vector({ + url: '/{{ prgr }}', + format: new ol.format.KML({extractStyles: false}), + + }), + style: polygonStyleFunction, + }); + mineBorderLayer.set('title', 'Границы ПРГР') + + mapCore.addLayer(mineBorderLayer) + + // Инициализация статических слоев const createdLayersManager = new CreatedLayersManager({ url: '{% url 'layers' %}',