Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

142
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda