Skip to content

Commit

Permalink
fix: prevent duplicates in attribute popup
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed May 25, 2022
1 parent 734038d commit 16a3fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MapPopup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
features =
map
.queryRenderedFeatures(queryBox, {
layers: layers.polygons.concat(layers.lines.concat(layers.points)),
layers: layers.polygons.filter(s=>!s.endsWith('-outline')).concat(layers.lines.concat(layers.points)),
})
?.sortBy({ prop: 'sourceLayer' })
.map((f) => {
Expand Down

0 comments on commit 16a3fd7

Please sign in to comment.