From 488d6355b60f2bd7d7666f26c991a741b7a68861 Mon Sep 17 00:00:00 2001
From: zakhy <=>
Date: Wed, 14 May 2025 10:40:57 +0700
Subject: [PATCH] =?UTF-8?q?=D0=92=D1=8B=D1=80=D0=B5=D0=B7=D0=B0=D0=BB=20?=
=?UTF-8?q?=D0=B7=D0=B0=D1=85=D0=B0=D1=80=D0=B4=D0=BA=D0=BE=D0=B6=D0=B5?=
=?UTF-8?q?=D0=BD=D0=BD=D1=8B=D0=B9=20=D1=81=D0=BB=D0=BE=D0=B9=20=D1=81=20?=
=?UTF-8?q?=D0=BE=D1=80=D1=82=D0=BE=D1=84=D0=BE=D1=82=D0=BE=D0=BF=D0=BB?=
=?UTF-8?q?=D0=B0=D0=BD=D0=BE=D0=BC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
apps/gto/templates/gto_main.html | 19 -----------------
apps/main/templates/create_layer.html | 21 -------------------
apps/main/templates/main_index.html | 19 -----------------
.../templates/form_orthomosaic.html | 15 +++++++++++--
.../templates/wklocation_edit.html | 19 -----------------
.../templates/wklocation_map.html | 19 -----------------
6 files changed, 13 insertions(+), 99 deletions(-)
diff --git a/apps/gto/templates/gto_main.html b/apps/gto/templates/gto_main.html
index f92f63b..708e8b3 100644
--- a/apps/gto/templates/gto_main.html
+++ b/apps/gto/templates/gto_main.html
@@ -420,25 +420,6 @@
mapCore.addLayer(gtoLayer, 'dynamic');
- const scanLayer = new ol.layer.Tile({
- source: new ol.source.XYZ({
- url: `/media/map/orth/tiles/{z}/{x}/{y}.png?seed=${Math.random() * 1000}`,
- }),
- extent: ol.proj.transformExtent(
- [
- parseFloat('{{ orth_minLon }}'),
- parseFloat('{{ orth_minLat }}'),
- parseFloat('{{ orth_maxLon }}'),
- parseFloat('{{ orth_maxLat }}')
- ],
- 'EPSG:4326', // Исходная проекция
- 'EPSG:3857' // Целевая проекция
- )
- });
- scanLayer.set('title', 'Ортофотоплан')
- scanLayer.set('name', 'orto')
- mapCore.addLayer(scanLayer)
-
const mineBorderLayer = new ol.layer.Vector({
source: new ol.source.Vector({
url: '/{{ prgr }}',
diff --git a/apps/main/templates/create_layer.html b/apps/main/templates/create_layer.html
index 724eb1c..6dd1157 100644
--- a/apps/main/templates/create_layer.html
+++ b/apps/main/templates/create_layer.html
@@ -345,7 +345,6 @@
let translateInteraction = {}
let extentInteraction = {}
let i = 0
- const scanLayerExists = Boolean(parseInt('{{ scan_layer_enable }}'))
let vectorSource = {}
let vectorLayer = {}
let group = {}
@@ -356,26 +355,6 @@
}),
]
- if (scanLayerExists) {
- scanLayer = new ol.layer.Tile({
- source: new ol.source.XYZ({
- url: `/media/map/orth/tiles/{z}/{x}/{y}.png?seed=${Math.random() * 1000}`,
- }),
- extent: ol.proj.transformExtent(
- [
- parseFloat('{{ orth_minLon }}'),
- parseFloat('{{ orth_minLat }}'),
- parseFloat('{{ orth_maxLon }}'),
- parseFloat('{{ orth_maxLat }}')
- ],
- 'EPSG:4326', // Исходная проекция
- 'EPSG:3857' // Целевая проекция
- )
- });
- scanLayer.set('name', 'Ортофотоплан')
- layers.push(scanLayer)
- }
-
function getCoordsByFeature(feature, resoluiton) {
const coords = feature.getGeometry().getCoordinates()
const coordsIn4326 = ol.proj.transform(coords, 'EPSG:3857', 'EPSG:4326');
diff --git a/apps/main/templates/main_index.html b/apps/main/templates/main_index.html
index 0666043..940a539 100644
--- a/apps/main/templates/main_index.html
+++ b/apps/main/templates/main_index.html
@@ -136,25 +136,6 @@
mapCore.addLayer(workerLayer, 'dynamic');
mapCore.addLayer(seismicLayer, 'dynamic');
- const scanLayer = new ol.layer.Tile({
- source: new ol.source.XYZ({
- url: `/media/map/orth/tiles/{z}/{x}/{y}.png?seed=${Math.random() * 1000}`,
- }),
- extent: ol.proj.transformExtent(
- [
- parseFloat('{{ orth_minLon }}'),
- parseFloat('{{ orth_minLat }}'),
- parseFloat('{{ orth_maxLon }}'),
- parseFloat('{{ orth_maxLat }}')
- ],
- 'EPSG:4326', // Исходная проекция
- 'EPSG:3857' // Целевая проекция
- )
- });
- scanLayer.set('title', 'Ортофотоплан')
- scanLayer.set('name', 'orto')
- mapCore.addLayer(scanLayer)
-
const mineBorderLayer = new ol.layer.Vector({
source: new ol.source.Vector({
url: '/{{ prgr }}',
diff --git a/apps/management/templates/form_orthomosaic.html b/apps/management/templates/form_orthomosaic.html
index 9858278..b02bbe8 100644
--- a/apps/management/templates/form_orthomosaic.html
+++ b/apps/management/templates/form_orthomosaic.html
@@ -49,7 +49,7 @@
{% endblock %}
{% block script_footer %}
+