MapZoneManager constructor

const MapZoneManager({
  1. Key? key,
  2. CameraPosition? initialCameraPosition,
  3. String? markerIcon,
  4. String? googleMapApiKey,
  5. bool multiZone = true,
  6. bool showLocationSearch = false,
  7. bool showZoneSearch = true,
  8. bool showAddButton = true,
  9. bool showCloseButton = true,
  10. bool showDeleteButton = true,
  11. bool viewOnly = false,
  12. Widget? addButtonWidget,
  13. Widget? deleteButtonWidget,
  14. Widget? closeButtonWidget,
  15. List<Zone>? zones,
  16. dynamic onLocationSuggestionSelected(
    1. LocationPrediction
    )?,
  17. dynamic onZoneSuggestionSelected(
    1. Zone
    )?,
  18. dynamic onZoneAdded(
    1. Zone
    )?,
  19. dynamic onError(
    1. String message
    )?,
  20. MapStyle mapStyle = MapStyle.standard,
  21. MapZoneManagerController? mapZoneManagerController,
  22. int minimumCoordinatesForAdding = 2,
  23. Color defaultZoneColor = Colors.yellow,
  24. Color defaultBorderColor = Colors.black,
  25. int defaultBorderWidth = 2,
  26. Color currentZoneColor = Colors.red,
  27. Color currentBorderColor = Colors.black,
  28. int currentBorderWidth = 2,
  29. void onCoordinatesAdded(
    1. LatLng
    )?,
  30. void onLongPress(
    1. LatLng
    )?,
  31. bool zoomControlsEnabled = true,
  32. bool zoomGesturesEnabled = true,
  33. bool myLocationEnabled = false,
  34. bool myLocationButtonEnabled = true,
})

Widget to display a map with the ability to create zones and manage markers.

Implementation

const MapZoneManager({
  super.key,
  this.initialCameraPosition,
  this.markerIcon,
  this.googleMapApiKey,
  this.multiZone = true,
  this.showLocationSearch = false,
  this.showZoneSearch = true,
  this.showAddButton = true,
  this.showCloseButton = true,
  this.showDeleteButton = true,
  this.viewOnly = false,
  this.addButtonWidget,
  this.deleteButtonWidget,
  this.closeButtonWidget,
  this.zones,
  this.onLocationSuggestionSelected,
  this.onZoneSuggestionSelected,
  this.onZoneAdded,
  this.onError,
  this.mapStyle = MapStyle.standard,
  this.mapZoneManagerController,
  this.minimumCoordinatesForAdding = 2,
  this.defaultZoneColor = Colors.yellow,
  this.defaultBorderColor = Colors.black,
  this.defaultBorderWidth = 2,
  this.currentZoneColor = Colors.red,
  this.currentBorderColor = Colors.black,
  this.currentBorderWidth = 2,
  this.onCoordinatesAdded,
  this.onLongPress,
  this.zoomControlsEnabled = true,
  this.zoomGesturesEnabled = true,
  this.myLocationEnabled = false,
  this.myLocationButtonEnabled = true,
});