UMap constructor

const UMap({
  1. required MapController controller,
  2. LatLng center = const LatLng(51.509364, -0.128928),
  3. double zoom = 10.0,
  4. double minZoom = 3.0,
  5. double maxZoom = 18.0,
  6. UMapTileProvider tileProvider = UMapTileProvider.openStreetMap,
  7. List<Marker> markers = const <Marker>[],
  8. List<Polyline<Object>> polylines = const <Polyline<Object>>[],
  9. List<Polygon<Object>> polygons = const <Polygon<Object>>[],
  10. Widget? centerWidget,
  11. bool zoomButtons = true,
  12. bool myLocationButton = true,
  13. bool currentLocationLayer = true,
  14. bool initOnUserLocation = false,
  15. bool showAttribution = true,
  16. void onTap(
    1. TapPosition,
    2. LatLng
    )?,
  17. void onLongPress(
    1. TapPosition,
    2. LatLng
    )?,
  18. void onPositionChanged(
    1. MapCamera,
    2. bool
    )?,
  19. void onPointerUp(
    1. PointerUpEvent,
    2. LatLng
    )?,
  20. String? mapBoxAccessToken,
  21. 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,
});