-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
querySourceFeatures throws Uncaught TypeError in loadMatchingFeature #6555
Comments
Yikes, thanks for the catch @andrewharvey! Yup, fc992ec introduced a path where Sorry I didn't notice this earlier, it didn't make it into my "Mention" queue -- did you edit the original post to tag me? |
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.
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.
@ChrisLoer Yeah I did, I never realised that meant the notification doesn't go through. |
* 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.
Needs backporting to |
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.
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.
mapbox-gl-js version: regression in v0.45.0-beta.1, works fine on v0.44.2.
I'm labelling this as a release blocker as it seems like a pretty major bug in the beta release, please adjust if it's not. Thanks.
Steps to Trigger Behavior
http://jsbin.com/wixaxim/2/edit?html,output
start clicking some points and the error below should popup in the console
Actual Behavior
/cc @ChrisLoer it looks related to fc992ec
The text was updated successfully, but these errors were encountered: