Closed erik closed 1 year ago
Code wise this makes sense to me. Do you have a screenshot of what this actually changes?
I don't, the issue that led me to this was actually entirely unrelated (a misconfiguration on my part). My understanding is that if you have a style mixing raster and vector sources (which I do not), this loop intends to hide the rasters from the inspect view
Tiny typo I noticed while tracing through the code in the debugger.
Seems to date back to
mapbox-gl-inspect
, and prevented theforEach(sourceId)
loop from actually doing anything.Typo introduced here: https://github.com/lukasmartinelli/mapbox-gl-inspect/commit/6bbe9848d695a72cba7ddae95ce5fe8eb3c8e115