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

Adding map interaction config #198

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

robinmolen
Copy link
Contributor

@robinmolen robinmolen commented Dec 11, 2024

Part of open-formulieren/open-forms#2177

This relies on a update to the types repo: open-formulieren/types#62

@robinmolen robinmolen force-pushed the feature/2177-map-interactions branch from 1644d74 to e7254fd Compare December 16, 2024 08:53
@robinmolen robinmolen marked this pull request as ready for review December 16, 2024 08:54
@robinmolen robinmolen requested a review from vaszig December 16, 2024 08:55
@robinmolen robinmolen marked this pull request as draft December 16, 2024 10:55
@robinmolen
Copy link
Contributor Author

Because this feature will be added after 3.0, this PR is moved to draft.

This PR is still ready to be reviewed, it just shouldn't be merged just yet

Copy link
Contributor

@vaszig vaszig left a comment

Choose a reason for hiding this comment

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

As far as I can say, it seems good to me. I would add though some stories for the interactions (not necessarily tests, but just to have the appearance).

@robinmolen
Copy link
Contributor Author

As far as I can say, it seems good to me. I would add though some stories for the interactions (not necessarily tests, but just to have the appearance).

The map component stories do show the configuration, but the choice doesn't have a visual representation.
But yeah, it would probably be nice to show/test the interaction options in the builder..

@robinmolen robinmolen force-pushed the feature/2177-map-interactions branch from e92bd4d to 56ca3aa Compare December 18, 2024 14:43
Both changes are needed for the leaflet-draw and react-leaflet-draw dependencies.

leaflet-draw uses images for the different markers, which are included in the css. For this to work with the scss build, .png and .svg files use the dataurl loader https://esbuild.github.io/content-types/#data-url

Typescript errors in the react-leaflet-draw dependency caused a typescript validation/error, which shouldn't happen. Using `skipLibCheck` in the tsconfig.json type issues in the node_modules folder are ignored
@robinmolen robinmolen force-pushed the feature/2177-map-interactions branch from 56ca3aa to 72b3cc2 Compare December 18, 2024 14:56
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.

Kaartmateriaal - Verschillende types kaart-interactie (Point, Polygon en Line)
2 participants