Skip to content

Commit

Permalink
FSR-452: Set z-index for stations (2) and rainfall (1) layers to ensu…
Browse files Browse the repository at this point in the history
…re proper visibility.
  • Loading branch information
Keyurx11 committed Aug 14, 2024
1 parent 438b845 commit 8fb6ec6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/src/js/components/map/live.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8fb6ec6

Please sign in to comment.