MapZoneManager constructor
const
MapZoneManager({
- Key? key,
- CameraPosition? initialCameraPosition,
- String? markerIcon,
- String? googleMapApiKey,
- bool multiZone = true,
- bool showLocationSearch = false,
- bool showZoneSearch = true,
- bool showAddButton = true,
- bool showCloseButton = true,
- bool showDeleteButton = true,
- bool viewOnly = false,
- Widget? addButtonWidget,
- Widget? deleteButtonWidget,
- Widget? closeButtonWidget,
- List<
Zone> ? zones, - dynamic onLocationSuggestionSelected()?,
- dynamic onZoneSuggestionSelected()?,
- dynamic onZoneAdded()?,
- dynamic onError(
- String message
- MapStyle mapStyle = MapStyle.standard,
- MapZoneManagerController? mapZoneManagerController,
- int minimumCoordinatesForAdding = 2,
- Color defaultZoneColor = Colors.yellow,
- Color defaultBorderColor = Colors.black,
- int defaultBorderWidth = 2,
- Color currentZoneColor = Colors.red,
- Color currentBorderColor = Colors.black,
- int currentBorderWidth = 2,
- void onCoordinatesAdded(
- LatLng
- void onLongPress(
- LatLng
- bool zoomControlsEnabled = true,
- bool zoomGesturesEnabled = true,
- bool myLocationEnabled = false,
- 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,
});