-
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.
Allow user to specify n, s, e, w padding options for fitBounds (#3890)
* Support padding positions in fitBounds - ref #995 * add padding to bounds to get correct viewport bounds * fix fitbounds padding + scale * fix padding tests * fix testing errors * fix coordinate order, change to object literal for padding option * update docs * update camera * change params to screen directions * one way to do things 💭 * update padding approach, add error warnings 🙅 * add PaddingOptions typedef to docs 📝 * update docs + tests * remove unnecessary console.log
- Loading branch information
Showing
2 changed files
with
93 additions
and
6 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