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

Add support for image sprites #583

Merged
merged 2 commits into from
Nov 29, 2023
Merged

Conversation

KaiVolland
Copy link
Contributor

@KaiVolland KaiVolland commented Oct 19, 2023

This adds support for sprites to the IconSymbolizer.
It will enhance parsing mapbox styles as they fully rely on sprites: https://docs.mapbox.com/style-spec/reference/sprite/#sprite-files

IMHO it is a breaking change as the UI and other parsers will fail handling a style with a Sprite.

BREAKING CHANGE:
IconSymbolizer.image can be a Sprite

Related to geostyler/geostyler-mapbox-parser#290

BREAKING CHANGE:
IconSymbolizer.image can be a Sprite
@simonseyock
Copy link
Contributor

Is this really a breaking change? It only adds functionality and does not add/break old functionality (as far as I see).

style.ts Show resolved Hide resolved
@KaiVolland
Copy link
Contributor Author

Is this really a breaking change? It only adds functionality and does not add/break old functionality (as far as I see).

It will break old functionality if you make use of a Sprite. Parsers and UI wont be able to handle this and potential crash or throw errors.

@KaiVolland KaiVolland marked this pull request as draft October 20, 2023 07:29
@KaiVolland KaiVolland marked this pull request as ready for review November 29, 2023 10:46
Copy link
Contributor

@jansule jansule left a comment

Choose a reason for hiding this comment

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

Very nice! I also see it as a breaking change, since when upgrading, other devs have to add additional type checks for ImageSymbolizer.image.

@KaiVolland KaiVolland merged commit b4cf892 into geostyler:master Nov 29, 2023
3 checks passed
@dnlkoch
Copy link
Contributor

dnlkoch commented Nov 30, 2023

🎉 This PR is included in version 8.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GeoStyler should support spritesheets
4 participants