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

101
Vistas
How does react-map-gl behave when sortByDepth for different popups is different

I am working with popup in react-map-gl, in the following documentation and regarding sortByDepth property, they mentioned that:

If true, the order of the popups will be dynamically rearranged to ensure that the ones anchored closer to the camera are rendered on top. Useful when showing multiple popups in a tilted map.

In my work I have many popups, I need to keep the popup which I clicked to be on the top, by making sortByDepth = false and returning the clicked popup as last element to be rendered between the popups I am able to do that, but still I need to keep the behavior of the other popups to be sorted by the depth, I tried to make a condition: if the current popup is not equal to the selected one, then sortByDepth equals to true, else it is false, but the behavior is not clear to me (it didn't work now the popup which I select will not be on the top but all the other popups will be above it).

so How does the rendering go if sortByDepth property differs from a one popup to another?

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