UMap constructor

const UMap({
  1. required MapController controller,
  2. Key? key,
  3. LatLng center = const LatLng(35, 55),
  4. double zoom = 10,
  5. double minZoom = 5,
  6. double maxZoom = 18,
  7. List<Marker>? markers,
  8. Widget? centerWidget,
  9. bool zoomButtons = true,
  10. bool currentLocationLayer = true,
  11. bool myLocationButton = true,
  12. bool initOnUserLocation = true,
  13. dynamic onTap(
    1. TapPosition tapPosition,
    2. LatLng point
    )?,
  14. dynamic onLongPress(
    1. TapPosition tapPosition,
    2. LatLng point
    )?,
  15. dynamic onPositionChanged(
    1. MapCamera position,
    2. bool hasGesture
    )?,
  16. dynamic onPointerUp(
    1. PointerUpEvent event,
    2. 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,
});