UMap constructor
const
UMap({
- required MapController controller,
- Key? key,
- LatLng center = const LatLng(35, 55),
- double zoom = 10,
- double minZoom = 5,
- double maxZoom = 18,
- List<
Marker> ? markers, - Widget? centerWidget,
- bool zoomButtons = true,
- bool currentLocationLayer = true,
- bool myLocationButton = true,
- bool initOnUserLocation = true,
- dynamic onTap(
- TapPosition tapPosition,
- LatLng point
- dynamic onLongPress(
- TapPosition tapPosition,
- LatLng point
- dynamic onPositionChanged()?,
- dynamic onPointerUp(
- PointerUpEvent event,
- LatLng point
Implementation
const UMap({
required this.controller,
super.key,
this.center = const LatLng(35, 55),
this.zoom = 10,
this.minZoom = 5,
this.maxZoom = 18,
this.markers,
this.centerWidget,
this.zoomButtons = true,
this.currentLocationLayer = true,
this.myLocationButton = true,
this.initOnUserLocation = true,
this.onTap,
this.onLongPress,
this.onPositionChanged,
this.onPointerUp,
});