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 Jul 22, 2024
1 parent 44d1efc commit 0012cc7
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 0012cc7

Please sign in to comment.