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

Style renderer example #11467

Merged
merged 4 commits into from
Aug 26, 2020
Merged

Style renderer example #11467

merged 4 commits into from
Aug 26, 2020

Conversation

ahocevar
Copy link
Member

This pull request adds an example that shows how to use a custom style renderer.

@ahocevar
Copy link
Member Author

See https://deploy-preview-11467--ol-site.netlify.app/examples/style-renderer.html for a preview of the new example.

Copy link
Member

@tschaub tschaub left a comment

Choose a reason for hiding this comment

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

Cool example.

I was thinking it might simplify things to use a clip path instead of the prerender listener and the three different composite operations. So I pushed this commit: tschaub@97d6d21

The rendered result is essentially the same.
image

Not sure whether or not it is significantly simpler.

Feel free to merge as is or with this additional commit.

@ahocevar ahocevar merged commit bacf07e into openlayers:main Aug 26, 2020
@ahocevar ahocevar deleted the style-renderer branch August 26, 2020 08:02
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