From b8932b86fef01794868d76e5c028c39cc660ed07 Mon Sep 17 00:00:00 2001 From: manjitapandey <97273021+manjitapandey@users.noreply.github.com> Date: Wed, 17 Jan 2024 11:43:13 +0545 Subject: [PATCH 1/5] fix: header removed, search bar adjusted --- frontend/src/views/projectLiveMonitoring.css | 2 +- frontend/src/views/projectLiveMonitoring.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/views/projectLiveMonitoring.css b/frontend/src/views/projectLiveMonitoring.css index a1532bb527..8852c1f8a9 100644 --- a/frontend/src/views/projectLiveMonitoring.css +++ b/frontend/src/views/projectLiveMonitoring.css @@ -6,7 +6,7 @@ .top { position: absolute; - top: 390px; + top: 200px; left: 20px; z-index: 999; } diff --git a/frontend/src/views/projectLiveMonitoring.js b/frontend/src/views/projectLiveMonitoring.js index 8ac147acea..650b547ba6 100644 --- a/frontend/src/views/projectLiveMonitoring.js +++ b/frontend/src/views/projectLiveMonitoring.js @@ -212,9 +212,6 @@ export function ProjectLiveMonitoring() { className="pr3" >
-
- -
@@ -241,7 +238,7 @@ export function ProjectLiveMonitoring() { options={imageryOptions} // placeholder={} onChange={handleMapSourceSelect} - className="w-50 z-2" + className="w-60 z-2" />
+
+ +
Date: Wed, 17 Jan 2024 13:14:06 +0545 Subject: [PATCH 2/5] padding changes --- frontend/src/views/projectLiveMonitoring.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/projectLiveMonitoring.js b/frontend/src/views/projectLiveMonitoring.js index 650b547ba6..538f1b982d 100644 --- a/frontend/src/views/projectLiveMonitoring.js +++ b/frontend/src/views/projectLiveMonitoring.js @@ -234,11 +234,12 @@ export function ProjectLiveMonitoring() { { - setStatus(statusList.ALL); - }} - name="allCheckbox" - id="allCheckbox" - type="radio" - /> - - { - setStatus(statusList.UNSQUARED); - }} - name="geospatialCheckbox" - id="geospatialCheckbox" - type="radio" - /> - - { - setStatus(statusList.BADVALUE); - }} - name="semanticCheckbox" - id="semanticCheckbox" - type="radio" - /> - - -
- { - setFeatureType('all'); - }} - name="featureTypeAllCheckbox" - id="featureTypeAllCheckbox" - type="radio" - /> - - { - setFeatureType('polygon'); - }} - name="featureTypePolygonCheckbox" - id="featureTypePolygonCheckbox" - type="radio" - /> - - { - setFeatureType('line'); - }} - name="featureTypeLineCheckbox" - id="featureTypeLineCheckbox" - type="radio" - /> - - { - setFeatureType('node'); - }} - name="featureTypeNodeCheckbox" - id="featureTypeNodeCheckbox" - type="radio" - /> - -
Date: Thu, 18 Jan 2024 11:41:10 +0545 Subject: [PATCH 4/5] Add `OSM` as default layer in `Live Monitoring` --- frontend/src/views/projectLiveMonitoring.js | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/frontend/src/views/projectLiveMonitoring.js b/frontend/src/views/projectLiveMonitoring.js index 1e8eaa78e2..812ef8b915 100644 --- a/frontend/src/views/projectLiveMonitoring.js +++ b/frontend/src/views/projectLiveMonitoring.js @@ -19,6 +19,7 @@ import './projectLiveMonitoring.css'; import { MAPBOX_TOKEN } from '../config'; const availableImageryOptions = [ + { label: 'OSM', value: 'osm' }, { label: 'Bing', value: 'Bing' }, { label: 'Mapbox Satellite', value: 'Mapbox' }, { label: 'ESRI World Imagery', value: 'EsriWorldImagery' }, @@ -96,6 +97,7 @@ export function ProjectLiveMonitoring() { const [mapConfig, setMapConfig] = useState(config); const [realtimeList, setRealtimeList] = useState(false); const [realtimeMap, setRealtimeMap] = useState(false); + // eslint-disable-next-line const [status, setStatus] = useState(statusList.UNSQUARED); // eslint-disable-next-line const [area, setArea] = useState(null); @@ -133,7 +135,7 @@ export function ProjectLiveMonitoring() { ? 'custom' : availableImageryValues.includes(data.imagery) ? data.imagery - : 'Bing'; + : 'osm'; setMapSource(mapSourceValue); }, [data]); @@ -235,7 +237,6 @@ export function ProjectLiveMonitoring() {