This repository has been archived by the owner on Apr 10, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove/re-add layers when source-related properties change (#571)
* Remove/re-add layers when source-related properties change Two cases: - Fix #570 - remove/re-add layer when `source`, `source-layer`, or `type` properties are changed. - Remove all dependent layers before removing a source; if the source is being removed and re-added, then the corresponding layers are also added again afterward. (See mapbox/mapbox-gl-js#3621 (comment)) * Add explainer comment * Fix lint * Slightly better readability * One more comment
- Loading branch information
1 parent
512126c
commit 77434bd
Showing
2 changed files
with
112 additions
and
3 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