Skip to content

Add example for rendering custom point symbols #4524

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

Merged
merged 1 commit into from
Dec 7, 2015

Conversation

ahocevar
Copy link
Member

@ahocevar ahocevar commented Dec 6, 2015

This example shows another use of ol.render.toContext.

It will be fully functional when both #4523 and #4515 are merged.

@ahocevar
Copy link
Member Author

ahocevar commented Dec 7, 2015

This is now fully functional and ready for review.

var style = styleCache[size];
if (!style) {
var canvas = document.createElement('canvas');
canvas['width'] = size + 2;
Copy link
Member

Choose a reason for hiding this comment

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

this is not needed anymore right, will be done by the toContext function?

Copy link
Member Author

Choose a reason for hiding this comment

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

Exactly. Thanks for spotting this. Fixed.

@ahocevar ahocevar force-pushed the custom-symbols branch 2 times, most recently from bf1a28d to a9ebcde Compare December 7, 2015 18:25
@bartvde
Copy link
Member

bartvde commented Dec 7, 2015

LGTM

ahocevar added a commit that referenced this pull request Dec 7, 2015
Add example for rendering custom point symbols
@ahocevar ahocevar merged commit 954a507 into openlayers:master Dec 7, 2015
@ahocevar ahocevar deleted the custom-symbols branch December 7, 2015 21:22
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