forked from mapbox/mapbox-gl-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make compass and zoom controls optional (mapbox#5348)
* Refactor line separator between control buttons Instead of having every control button have a bottom border, make stacked buttons have a top-border. This gets rid of the :last-child selector too. * Make compass optional The compass button of the navigation control is now optional. Creating a new navigation control with `{showCompass: false}` will leave out the compass button. Defaults to showing the compass button. * Make zoom-in/out buttons optional They still default to showing, but make them optional. * Add documentation * Update documentation * Conditionally add the dragRotateHandler - Remove check from `_rotateCompassArrow` - Add checks to `onAdd` and `onRemove`
- Loading branch information
1 parent
a2c22d6
commit da74713
Showing
2 changed files
with
38 additions
and
20 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