-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DivOverlay: refactor _prepareOpen method (and related changes)
1. Fix a couple of edge cases: - layer is empty FeatureGroup - FeatureGroup contains layers that are not on map 2. Make code logic more clear: - get rid of redundant first argument, as bound overlay always contains _source prop. - rename `layer` to `source` for the sake of clarity. - openPopup/Tooltip: rename `layer` to `target` for the sake of clarity. 3. Allow to prevent overlay opening gracefully on some conditions (like empty FeatureGroup)
- Loading branch information
johndoe
committed
Nov 1, 2021
1 parent
0f904a5
commit d4e5316
Showing
4 changed files
with
71 additions
and
36 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