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

Fix a possible polygon feature update after delete. #913

Merged
merged 1 commit into from
Aug 30, 2018

Conversation

manthey
Copy link
Contributor

@manthey manthey commented Aug 30, 2018

On a geo.gl.polygonFeature with stroke, the update can be delayed one animation frame. If the polygonFeature is deleted during that delay, this could throw an error due to the styles of the feature being reset as part of the deletion process. This unschedules the update.

This PR also introduces a ready property to features to ensure deleted features are not drawn.

This makes m_this references in the feature module more consistent.

Copy link
Contributor

@jbeezley jbeezley left a comment

Choose a reason for hiding this comment

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

Confirmed it fixed my issue. Thanks.

On a geo.gl.polygonFeature with stroke, the update can be delayed one
animation frame.  If the polygonFeature is deleted during that delay,
this could throw an error due to the styles of the feature being reset
as part of the deletion process.  This unschedules the update.

This PR also introduces a `ready` property to features to ensure deleted
features are not drawn.

This makes `m_this` references in the feature module more consistent.
@manthey manthey force-pushed the fix-update-after-delete branch from c142dee to b6db070 Compare August 30, 2018 18:46
@manthey manthey merged commit 2c8db27 into master Aug 30, 2018
@manthey manthey deleted the fix-update-after-delete branch August 30, 2018 19:27
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