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

Make the parameters passed to line style functions consistent. #804

Merged
merged 1 commit into from
Apr 5, 2018

Conversation

manthey
Copy link
Contributor

@manthey manthey commented Apr 4, 2018

When style or position functions are called for individual vertices on polygons or lines on the canvas renderer, the functions are of the form styleFunc(vertex, vertexIndex, dataElement, dataIndex). However, for gl line features, this was of the form styleFunc(vertex, vertexIndex, lineFunc(dataElement, dataIndex), dataIndex). The gl line feature has been changed to make it consistent with other vertex style functions.

When style or position functions are called for individual vertices on
polygons or lines on the canvas renderer, the functions are of the form
`styleFunc(vertex, vertexIndex, dataElement, dataIndex)`.  However, for
gl line features, this was of the form `styleFunc(vertex, vertexIndex,
lineFunc(dataElement, dataIndex), dataIndex)`.  The gl line feature has
been changed to make it consistent with other vertex style functions.
@manthey manthey requested a review from matthewma7 April 4, 2018 20:27
Copy link

@matthewma7 matthewma7 left a comment

Choose a reason for hiding this comment

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

Tried it out. Worked great for me.

@manthey manthey merged commit ad7f14c into master Apr 5, 2018
@manthey manthey deleted the line-style-func-params branch April 5, 2018 12:03
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