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

Mvj 536 map tool icons #533

Merged
merged 5 commits into from
Oct 10, 2024
Merged

Mvj 536 map tool icons #533

merged 5 commits into from
Oct 10, 2024

Conversation

henrinie-nc
Copy link
Contributor

What this does to fix certain images for leaflet-draw, is that it copies the images of leaflet-draw to the build.
Since in current version of leaflet-draw its css points the images to image/xxx but vite wants them to be in assets, we will transform the css url()'s that start with images/ to assets/images/.

If you know of a better way let me know. Would maybe prefer inline of the images base64 in the css or something, but not sure how to accomplish it with this specific library. Maybe it is not worth any extra time to spend more fighting it.

On top of this, I also changed some css url()'s to point to /assets/ instead of ../assets - seems more correct and didn't see any issues with that. Those svg's seems to endup in the css files as inline in any case.

Copy link
Contributor

@juho-kettunen-nc juho-kettunen-nc left a comment

Choose a reason for hiding this comment

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

No improvement suggestions for this. Good that you also updated the relative paths to absolute ones.

@henrinie-nc henrinie-nc merged commit 4f14510 into develop Oct 10, 2024
4 checks passed
@henrinie-nc henrinie-nc deleted the MVJ-536-map-tool-icons branch October 10, 2024 11:46
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