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

132
Visualizações
How to hide contour-labels that lie upon intersecting contour-lines in a react-map-gl or mapbox-gl-js based Isochrone layer?

Context: I have an Isochrone layer based on mapbox-gl-js and react-map-gl. There, I want to show some contour-labels on the contour-lines with some conditions. Please look at the shared image: isochrone image with labels

In the shared image, I have marked several contour-labels as "A" and some as "B". If you observe the contour-lines behind these contour-labels, you'll see that "B" labels have multiple lines intersecting beneath them whereas "A" labels have a single line (looks like a road).

Question: Now, I only want to show contour-labels at places where there's a single contour-line and NO intersection/overlapping of multiple contour-lines. Basically, I want only to show "A" points and hide "B" points. I would ideally, want to do this with Mapbox expressions without any custom logic related to geometries. Thank you a lot for helping.

More images for clarification: single line double line or line with intersection

Technicals:

  • Contour-lines are a layer of type 'line'.
  • Contour-labels are another layer in the same source of type 'symbol' (this was the suggested mechanism by Mapbox to show contour labels).
  • Contour-polygons are another layer with the same source.
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