Skip to content

Commit

Permalink
applies correctly filter WDPA filter to WDPA Preview layer
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgnlez authored and hotzevzl committed Feb 6, 2024
1 parent 3df4c04 commit 9b39aa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/hooks/map/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@ export function useWDPAPreviewLayer({
// wdpaIucnCategories are filtered in two steps as they are custom and WDPA.
filter: [
'any',
['all', ['in', ['get', 'iucn_cat'], ['literal', id]]],
['all', ['in', ['get', 'id'], ['literal', id]]],
['all', ['in', ['get', 'iucn_cat'], ['literal', [id]]]],
['all', ['in', ['get', 'id'], ['literal', [id]]]],
],
paint: {
'fill-color': COLORS['wdpa-preview'],
Expand Down

0 comments on commit 9b39aa2

Please sign in to comment.