diff --git a/apps/main/templates/main_index.html b/apps/main/templates/main_index.html index d41d26c..e789a93 100644 --- a/apps/main/templates/main_index.html +++ b/apps/main/templates/main_index.html @@ -332,10 +332,15 @@ scanLayer = new ol.layer.Tile({ source: new ol.source.XYZ({ - url: '/static/img/tiles/{z}/{x}/{y}.png', + url: '/media/map/orth/tiles/{z}/{x}/{y}.png', }), extent: ol.proj.transformExtent( - [86.639393, 53.959368, 86.698046, 54.004628], // [minLon, minLat, maxLon, maxLat] + [ + parseFloat('{{ orth_minLon }}'), + parseFloat('{{ orth_minLat }}'), + parseFloat('{{ orth_maxLon }}'), + parseFloat('{{ orth_maxLat }}') + ], 'EPSG:4326', // Исходная проекция 'EPSG:3857' // Целевая проекция ) @@ -344,7 +349,7 @@ scanLayer.set('name', 'Ортофотоплан') - const layers = [ + const layers = [ OSM, mineBorderLayer, SPLayer, diff --git a/apps/management/templates/add_orthomosaic.html b/apps/management/templates/add_orthomosaic.html new file mode 100644 index 0000000..b08f043 --- /dev/null +++ b/apps/management/templates/add_orthomosaic.html @@ -0,0 +1,144 @@ +{% extends "default.html" %} +{% load static %} +{% load mysettings %} + + +{% block header_link %} + + + + + + +{% endblock header_link %} +{% block content %} +
+
+
+
+

Добавление ортофотоплана

+
+ +
+
+
+ +
+
+ {% csrf_token %} +
+
+ +
+
+
+ {% if error %} +
+ +

Внимание !

+ {% for com in error_comment %} +

{{ com }}

+ {% endfor %} +
+ {% endif %} + +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+ + +
+
+
+
+

+ + Необходимо загрузить архив в соответствии с TMS +

+
+ +
+ +
+ +
+ +
+
+
+{% endblock %} +{% block script_footer %} + + +{% endblock script_footer %} + diff --git a/apps/management/templates/settings.html b/apps/management/templates/settings.html index 3f5f50e..15f570a 100644 --- a/apps/management/templates/settings.html +++ b/apps/management/templates/settings.html @@ -58,6 +58,9 @@ id="id_prgr" style="visibility:hidden;" accept=".kml"> +
+ Загрузить ортофотоплан +