performant-software / react-components

A library of shared React components
https://performant-software.github.io/react-components/
MIT License
1 stars 1 forks source link

Fix placemarkers component to handle null geometry #269

Closed ajolipa closed 5 months ago

ajolipa commented 5 months ago

In this PR

Update to PR #265 , but now using the updated PlaceMarkers component. Adds handling to filter out places passed to the component that have null geometry fields and thus run the risk of crashing the component.

Notes

When I tested this last week it seemed that the null geometry was handled somehow by the feature function imported from @turf/turf, but I must have misinterpreted that somehow because now it seems to be throwing a coordinates must be a number error. So hopefully this will fix that issue for real.