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

Cherry pick #6555 fix from master. #6581

Merged
merged 1 commit into from
Apr 30, 2018
Merged

Cherry pick #6555 fix from master. #6581

merged 1 commit into from
Apr 30, 2018

Conversation

ChrisLoer
Copy link
Contributor

Don't load FeatureIndex#vtLayers from outside FeatureIndex code. (#6559)

  • Don't load FeatureIndex#vtLayers from outside FeatureIndex code.
    Fixes issue querySourceFeatures throws Uncaught TypeError in loadMatchingFeature #6555 (a possible crash when calling queryRenderedFeatures after querySourceFeatures)
    The actual contents of the regression test are not that important -- before this fix, the test would crash.

  • Fix Tile unit test by deserializing the FeatureIndex before using it.

/cc @ansis @jfirebaugh

Don't load FeatureIndex#vtLayers from outside FeatureIndex code. (#6559)

* Don't load FeatureIndex#vtLayers from outside FeatureIndex code.
Fixes issue #6555 (a possible crash when calling queryRenderedFeatures after querySourceFeatures)
The actual contents of the regression test are not that important -- before this fix, the test would crash.

* Fix Tile unit test by deserializing the FeatureIndex before using it.
@ChrisLoer ChrisLoer requested review from jfirebaugh and ansis April 30, 2018 20:26
@ChrisLoer ChrisLoer merged commit c4b2e90 into release-0.45 Apr 30, 2018
@jfirebaugh jfirebaugh deleted the cp-6555 branch April 30, 2018 20: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.

2 participants