I have a Leaflet based application, and have recently started using mapbox-gl-leaflet to access Mapbox GL's vector based layers in legacy Leaflet code.
Today I've come across an issue that I can't resolve. I have a base map layer and an optional overlay (hiking routes). In Mapbox studio, the hiking route layer has no background - it's completely transparent.
I was expecting to be able to add the hiking route layer on top of the base map layer, and have both be visible at the same time. However, that's not what happens. Only one layer is visible at a time.
Here's a minimal example of the issue I'm seeing: https://osm.trailrouter.com/stackoverflow.html
Run map.removeLayer(layers.default);
in the dev tool's console to remove the base layer, and then you'll see my hiking routes underneath.
I'd like to have the blue hiking routes overlaid on top of the map.
Any ideas?