Skip to content

Commit

Permalink
Disable turning layers off.
Browse files Browse the repository at this point in the history
  • Loading branch information
chmac committed Feb 12, 2025
1 parent 6207c27 commit 2705d8e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nr-app/src/redux/slices/map.slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,16 @@ export const mapSlice = createSlice({
state.enabledLayers[action.payload] = true;
},
disableLayer: (state, action: PayloadAction<MAP_LAYER_KEY>) => {
// Disable uncommenting layers for now
return state;
// eslint-disable-next-line no-unreachable
state.enabledLayers[action.payload] = false;
},
toggleLayer: (state, action: PayloadAction<MAP_LAYER_KEY>) => {
// Disable uncommenting layers for now
if (state.enabledLayers[action.payload]) {
return state;
}
state.enabledLayers[action.payload] =
!state.enabledLayers[action.payload];
},
Expand Down

0 comments on commit 2705d8e

Please sign in to comment.