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 bug causing "Map#queryRenderedFeatures" to return no features after "Tile#redoPlacement" #3221

Closed
anandthakker opened this issue Sep 19, 2016 · 0 comments · Fixed by #3233

Comments

@anandthakker
Copy link
Contributor

After VectorTileSource#loadTile uses the reload tile method on the worker, tile.rawTileData ends up being set to null. This is happening here: since rawTileData isn't transferred back and forth during reload tile, tile.rawTileData needs to be preserved when performing unloadVectorData.

@lucaswoj I wouldn't expect rawTileData to retain any external references, and so I'd think it should be safe to remove the this.rawTileData = null; from Tile#unloadVectorData. Do you concur?

@lucaswoj lucaswoj changed the title Fix bug causing 'reload tile' to remove vector data needed for feature queries Fix bug causing "Map#queryRenderedFeatures" to return no features after "Tile#redoPlacement" Sep 20, 2016
@lucaswoj lucaswoj self-assigned this Sep 20, 2016
@lucaswoj lucaswoj added this to the Denver milestone Sep 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants