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

Use freehand polygon tool for a common repo #487

Merged
merged 1 commit into from
Mar 25, 2024
Merged

Conversation

dabreegster
Copy link
Contributor

I refactored https://github.com/dabreegster/maplibre-draw-polygon to use in other projects, so we can clean up some code here.

Note I kept PolygonControls.svelte, because it needs to use govuk components, unlike the common library. And I also kept PolygonToolLayer.svelte because it uses layerId for custom z-ordering logic, and I haven't found a clean way to include that in the common library. (The drawing component included there could be customized in any number of ways for colors/style, so it might make sense for users to just adapt that code manually.)

@dabreegster dabreegster merged commit dfeead7 into main Mar 25, 2024
2 checks passed
@dabreegster dabreegster deleted the common_polygon_tool branch March 25, 2024 09:41
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