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 @@
-
+ {% csrf_token %}
@@ -153,7 +153,7 @@
@@ -168,6 +168,17 @@
{% endblock %} {% block script_footer %} +