Skip to content

Conversation

@fredj
Copy link
Member

@fredj fredj commented Sep 7, 2016

fixes #5865

@fredj fredj changed the title [wip] Allow CanvasPattern or CanvasGradient as stroke style Allow CanvasPattern or CanvasGradient as stroke style Sep 13, 2016
@fredj
Copy link
Member Author

fredj commented Sep 13, 2016

Rendering tests added, thanks for any review

this.checksum_ = 's';
if (this.color_) {
if (typeof this.color_ === 'string') {
this.checksum_ += ol.color.asString(this.color_);
Copy link
Member

Choose a reason for hiding this comment

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

this.color_ is a string already, so no need to call ol.color.asString().

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed, thanks

@AerosTurbo
Copy link

AerosTurbo commented Sep 13, 2016

How can I include this code into ol.js? I have only ol.js (the latest version). Where can I find some instructions?

@ahocevar
Copy link
Member

Looks good now. Please merge.

@fredj
Copy link
Member Author

fredj commented Sep 14, 2016

Thanks for the review @ahocevar

@fredj fredj merged commit 7ec100f into openlayers:master Sep 14, 2016
@fredj fredj deleted the stroke_pattern branch September 14, 2016 06:38
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.

Cannot set pattern as stroke color

3 participants