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

100
Visualizações
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 à 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