-
-
Notifications
You must be signed in to change notification settings - Fork 847
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix double padding on camera when setting bounds (#3354)
* Zero padding when it's already baked into center/zoom from bounds * Apply bounds camera directly to prevent padding being applied twice * Update example to allow granular control over padding * Scale down padding if it surpasses map size * Remove instant set on zero duration to allow dynamic duration in flyTo * Enable setting min and max zoom limits * Allow removing map zoom limits and avoid unneeded zoom comparisons * Remove unused import
- Loading branch information
1 parent
e49a937
commit 24edfeb
Showing
2 changed files
with
210 additions
and
178 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
Oops, something went wrong.