UMap constructor
const
UMap({
- required MapController controller,
- LatLng center = const LatLng(51.509364, -0.128928),
- double zoom = 10.0,
- double minZoom = 3.0,
- double maxZoom = 18.0,
- UMapTileProvider tileProvider = UMapTileProvider.openStreetMap,
- List<
Marker> markers = const <Marker>[], - List<
Polyline< polylines = const <Polyline<Object>>[],Object> > - List<
Polygon< polygons = const <Polygon<Object>>[],Object> > - Widget? centerWidget,
- bool zoomButtons = true,
- bool myLocationButton = true,
- bool currentLocationLayer = true,
- bool initOnUserLocation = false,
- bool showAttribution = true,
- void onTap()?,
- void onLongPress()?,
- void onPositionChanged()?,
- void onPointerUp()?,
- String? mapBoxAccessToken,
- Key? key,
Implementation
const UMap({
required this.controller,
this.center = const LatLng(51.509364, -0.128928), // Default: London
this.zoom = 10.0,
this.minZoom = 3.0,
this.maxZoom = 18.0,
this.tileProvider = UMapTileProvider.openStreetMap,
this.markers = const <Marker>[],
this.polylines = const <Polyline<Object>>[],
this.polygons = const <Polygon<Object>>[],
this.centerWidget,
this.zoomButtons = true,
this.myLocationButton = true,
this.currentLocationLayer = true,
this.initOnUserLocation = false,
this.showAttribution = true,
this.onTap,
this.onLongPress,
this.onPositionChanged,
this.onPointerUp,
this.mapBoxAccessToken,
super.key,
});