Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

143
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda