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

Added support for named graphics for the canvas renderer #238

Merged
merged 4 commits into from Feb 22, 2012

Conversation

ajkopinga
Copy link
Contributor

It's now possible to use named graphics for point symbols within layers using the canvas renderer. To see this: use examples/graphic-name.html?renderer=Canvas . This should now look and behave the same way as ?renderer=SVG .

Arjen Kopinga added 4 commits February 22, 2012 15:26
…d might result at a location where the edge of one feature intersects the interior of another. This is due to antialiasing on the hit context canvas which can't be turned off, unfortunately.
@ahocevar ahocevar merged commit bb3ae99 into openlayers:master Feb 22, 2012
@ahocevar
Copy link
Member

@ajkopinga Thanks for this great contribution. It doesn't happen often that the first patch of a new contributor is in such a good shape as yours.

@ajkopinga
Copy link
Contributor Author

You're welcome. It's my first time using git(hub) as well.

ahocevar added a commit that referenced this pull request Feb 22, 2012
* type - {String} one of 'stroke', 'fill', or 'reset'
* style - {Object} Symbolizer hash
*/
setCanvasStyle: function(type, style) {
Copy link
Contributor

Choose a reason for hiding this comment

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

CAUTION: "setCanvasStyle" method is repeated!

See:

..\build\temp\lib\OpenLayers\Renderer\Canvas.js:445: WARNING - object literals cannot contain duplicate keys in ES5 strict mode
    setCanvasStyle: function(type, style) {
    ^

ahocevar added a commit that referenced this pull request Mar 4, 2012
Thanks @jorix for catching this (see #238).
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

3 participants