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

Snap : only listen to change event triggered by the feature #6386

Merged
merged 1 commit into from
Jan 20, 2017

Conversation

tchandelle
Copy link
Contributor

Fix #6372

I've replaced both listeners on change (triggered by the geometry) and change:geometry (triggered by the feature) by one listener on change, triggered by the feature. This will catch changes on the geometry coordinates, replacement of geometry and changes on geometry name.

ol.Feature catch change event from its geometry and trigger a change
event itself. ol.Feature will also trigger change event when its
geometryName has changed
Copy link
Member

@ahocevar ahocevar left a comment

Choose a reason for hiding this comment

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

Excellent work @tchandelle, and thanks for the additional tests!

@ahocevar ahocevar merged commit 69ef508 into openlayers:master Jan 20, 2017
@tchandelle tchandelle deleted the snap branch January 20, 2017 14:15
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