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 Sep 5, 2024
1 parent 71794f1 commit d701111
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 d701111

Please sign in to comment.