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 disapparing images when switching basemaps #486

Merged
merged 2 commits into from
Mar 14, 2024
Merged

Fix disapparing images when switching basemaps #486

merged 2 commits into from
Mar 14, 2024

Conversation

dabreegster
Copy link
Contributor

Two commits here. The first is just refactor, trying to be more precise about the combinatorial explosion of basemap and overlay layers we have. And the second fixes the problem reported recently. Enable cycle parking (which uses an extra image we load), switch basemaps -- now the symbol still works. We just needed https://github.com/dimfeld/svelte-maplibre/blob/master/CHANGELOG.md#082.

Note I still think there might be some z-order oddness when changing basemaps. We decide the layer order when the layers are first created, which'll depend on the basemap layer names that exist at that point. If the user switches basemaps, I don't think we run this calculation again. Harder one to think about for the future.

@@ -81,7 +81,7 @@
}}
>
<CircleLayer
{...layerId(`${source}-clusters`)}
{...layerId(`criticals-clusters`)}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indirections make it hard to grep code and find where stuff is used


"draw-street-view",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was unused

Copy link
Contributor

@Pete-Y-CS Pete-Y-CS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dabreegster dabreegster merged commit ffbb693 into main Mar 14, 2024
2 checks passed
@dabreegster dabreegster deleted the zorder branch March 14, 2024 15:54
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.

None yet

2 participants