Skip to content

Commit

Permalink
fix: always add points on top of polygon layers
Browse files Browse the repository at this point in the history
Fixes #546
  • Loading branch information
stdavis committed Sep 6, 2023
1 parent a9c4edd commit 11a2536
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,10 @@ export default function MapComponent() {
}
}

map.current.add(featureLayer);
map.current.add(
featureLayer,
featureLayer.geometryType === 'polygon' ? 0 : null,
);

const layerView = await view.current.whenLayerView(featureLayer);
layerView.filter = {
Expand Down

0 comments on commit 11a2536

Please sign in to comment.