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

Add exceptions for street-centerlines layer group to logic for hiding all layers #1206

Merged
merged 1 commit into from
Jul 21, 2024

Conversation

TylerMatteo
Copy link
Contributor

This PR fixes an apparent bug in the "Toggle All Map Layers Off" functionality introduced in #1181 that was reported in helpscout ticket 3984. Toggling off all layer groups hides the street-centerlines layer group which is what renders the street names and widths
image
Because there is no corresponding toggle for that layer in the layer palette, the only way the user can get them back is by clicking the "Toggle All Layers Back On" button. This code filters out that layer group so that it isn't hidden. Ideally we wouldn't hard code layer group ids into application code like this but, as things stand, there doesn't seem to be an easy way to distinguish layer groups with toggles in the layer palette from those without.

@TylerMatteo TylerMatteo requested a review from a team as a code owner July 21, 2024 13:38
Copy link

netlify bot commented Jul 21, 2024

Deploy Preview for labs-zola ready!

Name Link
🔨 Latest commit 8cbe8a8
🔍 Latest deploy log https://app.netlify.com/sites/labs-zola/deploys/669d0f5acb6b6100088d520c
😎 Deploy Preview https://deploy-preview-1206--labs-zola.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@TylerMatteo TylerMatteo merged commit 8e904d2 into develop Jul 21, 2024
3 of 7 checks passed
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.

1 participant