From 8fb6ec6fae8d4d6fc9f2ab2b4c9012e805c95c81 Mon Sep 17 00:00:00 2001 From: Keyurx11 Date: Wed, 31 Jul 2024 12:04:52 +0100 Subject: [PATCH] FSR-452: Set z-index for stations (2) and rainfall (1) layers to ensure proper visibility. --- server/src/js/components/map/live.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/src/js/components/map/live.js b/server/src/js/components/map/live.js index e5a66f774..b09514db8 100644 --- a/server/src/js/components/map/live.js +++ b/server/src/js/components/map/live.js @@ -72,6 +72,10 @@ function LiveMap (mapId, options) { ] const layers = defaultLayers.concat(dataLayers) + // Assign z-index to ensure visibility + stations.setZIndex(2) // Higher priority + rainfall.setZIndex(1) // Lower priority + // Configure default interactions const interactions = defaultInteractions({ pinchRotate: false