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: