I'm building a mapbox solution to show some entities' travel, like rented cars. I've one source of Geojson data, each geojson feature has the car ID as property, and a boolean to tell if this feature is the current one (current car location) or not.
For each car id I create two layers : one for the path, one for the current position (it's a circle). It's for this one I've a problem. When all cars are back home (at the same place), I only see the top one layer because all points are stacked.
In Mapbox documentation we can see that styling is configured on the layer level. How can I show a special style when two or more layers have something to print at same location?