Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in generateInspectStyle #6

Merged
merged 2 commits into from
Feb 7, 2023
Merged

Fix typo in generateInspectStyle #6

merged 2 commits into from
Feb 7, 2023

Conversation

erik
Copy link
Contributor

@erik erik commented Feb 7, 2023

Tiny typo I noticed while tracing through the code in the debugger.

Seems to date back to mapbox-gl-inspect, and prevented the forEach(sourceId) loop from actually doing anything.

Typo introduced here: lukasmartinelli/mapbox-gl-inspect@6bbe984

Seems to date back to `mapbox-gl-inspect`, and prevented the `forEach(sourceId)` loop from actually doing anything.

Typo introduced here: lukasmartinelli/mapbox-gl-inspect@6bbe984
lib/stylegen.js Outdated Show resolved Hide resolved
@acalcutt
Copy link
Collaborator

acalcutt commented Feb 7, 2023

Code wise this makes sense to me. Do you have a screenshot of what this actually changes?

@erik
Copy link
Contributor Author

erik commented Feb 7, 2023

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

@acalcutt
Copy link
Collaborator

acalcutt commented Feb 7, 2023

I did a bit of looking to understand the code and it seems like this eventually gets sent to maplibre SetStyle.

I agree this is a typo, since 'soources' would be of no use to SetStyle.

@acalcutt acalcutt merged commit 92ed733 into maplibre:main Feb 7, 2023
@erik erik deleted the patch-1 branch February 7, 2023 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants