Skip to content

Commit

Permalink
fixed the member layers issue
Browse files Browse the repository at this point in the history
  • Loading branch information
CloudLun committed Dec 14, 2023
1 parent af16786 commit e15bcff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/Geopanel/Membershippanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@ const Membershippanel = ({ selectedMemberFeatures, setSelectedMemberFeatures }:
center: targetCentroid as [number, number],
zoom: targetCentroid[0] > -74.15 && targetCentroid[1] < 41.05 ? 13 : 8
})


map?.moveLayer("districts_outline", "members_label")
map?.moveLayer("districts_outline", "members")
map?.moveLayer("districts_clicked_outline", "members_label")
map?.moveLayer("districts_clicked_outline", "members")
})
})

Expand Down
2 changes: 2 additions & 0 deletions components/Map/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,8 @@ const Map = () => {

m.moveLayer("districts_outline", "members_label")
m.moveLayer("districts_outline", "members")
m.moveLayer("districts_clicked_outline", "members_label")
m.moveLayer("districts_clicked_outline", "members")

})

Expand Down

0 comments on commit e15bcff

Please sign in to comment.