From f46aebb877d3bad15c23af2884489ff5f3a0944c Mon Sep 17 00:00:00 2001 From: Ivan Date: Tue, 22 Aug 2023 16:55:36 +0300 Subject: [PATCH] reports map update --- static/styles/main.css | 2 +- static/templates/reports/report.html | 116 ++++++++------------------- 2 files changed, 35 insertions(+), 83 deletions(-) diff --git a/static/styles/main.css b/static/styles/main.css index 52f8b41..e96edb2 100644 --- a/static/styles/main.css +++ b/static/styles/main.css @@ -1626,7 +1626,7 @@ input[type="datetime-local"] { width: 100%; height: 100%; position: absolute; - border-radius: 29px; + /* border-radius: 29px; */ } .properties { diff --git a/static/templates/reports/report.html b/static/templates/reports/report.html index e84cc35..ba0c3dc 100644 --- a/static/templates/reports/report.html +++ b/static/templates/reports/report.html @@ -9,6 +9,10 @@ + + + + @@ -184,98 +188,46 @@ } + -var markerSource = new ol.source.Vector({ - features: [startMarker, endMarker] -}); - -var markerLayer = new ol.layer.Vector({ - source: markerSource -}); - -var map = new ol.Map({ - target: 'map', - layers: [ - new ol.layer.Tile({ - source: new ol.source.OSM() - }), - markerLayer, - routeLayer - ], - view: new ol.View({ - center: ol.proj.fromLonLat([prevLongitude, prevLatitude]), - zoom: 14 - }) -}); - -// Скрыть кнопки приближения/отдаления -map.getControls().forEach(function(control) { - if (control instanceof ol.control.Zoom) { - map.removeControl(control); - } -}); - -// Скрыть информационную панель -map.getControls().forEach(function(control) { - if (control instanceof ol.control.Attribution) { - map.removeControl(control); - } -}); - -