Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

150
Views
Simple-react-maps ignore invalid marker coordinates

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) {
        
      }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!