Skip to content

Commit

Permalink
fix: draw tool should not hide underlying layers
Browse files Browse the repository at this point in the history
  • Loading branch information
billyc committed Jul 26, 2021
1 parent 77f2b40 commit 89b9fde
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/js/LayerManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ export default class LayerManager {

init(deckProps: any) {
this.deckInstance = new DeckMap({ ...deckProps, map: MAPBOX_TOKEN })
const style = globalStore.state.isDarkMode ? MAP_STYLES.dark : MAP_STYLES.light
this.deckInstance.setMapStyle(style)
if (deckProps.mapStyle !== null) {
const style = globalStore.state.isDarkMode ? MAP_STYLES.dark : MAP_STYLES.light
this.deckInstance.setMapStyle(style)
}
}

destroy() {
Expand Down

0 comments on commit 89b9fde

Please sign in to comment.