Map Toolbar¶
FUIMapToolbar¶
open class FUIMapToolbar: UIView, FUIBackgroundSchemeSupporting
A View that wraps the FUIMapToolbarButton in a vertical stack.
- The
FUIMapToolbarholds a maximum of 6FUIMapToolbarButton. - Default variants of
FUIMapToolbarButtonexist within the SDK. See,FUIMapToolbarSettingsButton,FUIMapToolbarUserLocationButton,FUIMapToolbarZoomExtentButton, orFUIMapToolbarLegendButton - The
FUIMapToolbarcan be presented in either a dark or light variant. - The
FUIMapToolbarwill be pinned to the givenMKMapViewin the top right corner
Usage¶
var toolbar = FUIMapToolbar(mapView: mapView)
toolbar.backgroundColorScheme = .dark // defaults to `.light`
let locationButton = FUIMapToolbarUserLocationButton(mapView: self.mapView)
let zoomExtentsButton = FUIMapToolbarZoomExtentButton(mapView: self.mapView)
toolbar.items = [locationButton, zoomExtentsButton]
Last update: April 14, 2021