-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use setData operation when diffing geojson sources (#5332)
This change makes setStyle() smarter by using GeoJSONSource#setData() when possible, rather than always removing/re-adding the source. It _doesn't_ currently defer the setData() work to the once-per-frame batch update (Style#update()), but that should happen as part of #3692 * setData for geojson source on setStyle diff * add style tests for setData * diff test for setData * remove from SourceCache and test uses setState * remove from SourceCache and test uses setState * remove leftover * add setData back to Source interface * add flow check and validation to Style#setGeoJSONSourceData
- Loading branch information
1 parent
492f616
commit e08f4fa
Showing
4 changed files
with
143 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters