I'm using Mapbox's Show and Hide Layer example where the user can toggle on/off layers, but seem to be running into an issue I can't pinpoint.
What I did
In Mapbox's example, I replace the first layer (Museum's) with my data and left their "contour" data alone. My data is an obvious big black blog for simplicity.
The result
The toggle switch appears to work by changing color when turning on/off, however my big black blog on my map isn't disappearing.
Actions taken
I tried countless times to slowly piece together portions of the code to see where it fails, but just not understanding where I'm going wrong. My guess it's the map.addSource versus map.addLayer which I may not be understanding the difference. My data was uploaded to a Tileset via a zipped shapefile. Perhaps the example being used is from a GeoJson?
Here's my code, except the access token is missing for security purposes.