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

140
Vistas
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 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