-
Notifications
You must be signed in to change notification settings - Fork 20
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
styler: QML upload, base64 encoded SVG icons #5008
base: develop
Are you sure you want to change the base?
Conversation
this.qml = styleString; | ||
this.qml = styleString.replace( | ||
/base64:/g, | ||
'data:image/svg+xml;base64,', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is to be fixed. Its not right to assume all base64 would be SVG icon.
- we should problably do this for SLDs as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QMLs will include source
attribute on both Option
(new fromat) and prop
(necessary backwards comaptiblity) elements containing base64. It can be then used to adjust the value as needed.
For now we will parse via prop
as Geostyler still takes the value from that attribute. See 02e923f
Prioritise style type when loading from file
Move base64 icon fix to separate function and file
Apply suggestions from code review Co-authored-by: jmacura <jmacura@users.noreply.github.com>
Description
Allow usage of base64 encoded SVG icons provided via QML*
*expected to include data type in source attribute of options and prop element
Related issues or pull requests
closes #4996
Pull request type
Please check the type of change your PR introduces:
Do you introduce a breaking change?
Checklist
npm test
locally)