I have been playing around with react-simple-maps and was able to add markers using lats and longs. about 80% of my markers are in the USA, so I am using this map here: https://codesandbox.io/s/usa-state-labels-map-fvi5o?from-embed
The problem I ran into is, when I pass it my data set, if it runs into a location outside of the US, it will fail but I can't seem to find anything that would let me ignore those markers. I even tried to put the rendered inside the try catch block and it would still fail. I would think that the code below inside me function component will just ignore bad/invalid coordinates but it does not. Is there away to ignore bad or invalidate coordinates?
try {
<Marker coordinates={[-68.1193, -16.4897]}>
<circle r={4} fill="#F53" />
</Marker>
} catch (error) {
}