getLocation function
Future<List<LatLng> ?>
getLocation(
- BuildContext context, {
- Color? toolColor,
- Color? polygonColor,
- IconData? iconLocation,
- IconData? iconEditMode,
- IconData? iconCloseEdit,
- IconData? iconDoneEdit,
- IconData? iconUndoEdit,
- IconData? iconGPSPoint,
- bool? autoEditMode,
- bool? pointDistance,
- LatLng? targetCameraPosition,
- TrackingMode? trackingMode,
- bool? enableDragMarker,
Function to open location maker
Implementation
Future<List<LatLng>?> getLocation(BuildContext context,
{Color? toolColor,
Color? polygonColor,
IconData? iconLocation,
IconData? iconEditMode,
IconData? iconCloseEdit,
IconData? iconDoneEdit,
IconData? iconUndoEdit,
IconData? iconGPSPoint,
bool? autoEditMode,
bool? pointDistance,
LatLng? targetCameraPosition,
TrackingMode? trackingMode,
bool? enableDragMarker}) async {
return await PolyMaker(
context: context,
toolColor: toolColor != null ? toolColor : Colors.black87,
polygonColor: polygonColor != null ? polygonColor : Colors.red,
iconLocation: iconLocation != null ? iconLocation : Icons.my_location,
iconEditMode:
iconEditMode != null ? iconEditMode : Icons.edit_location,
iconCloseEdit: iconCloseEdit != null ? iconCloseEdit : Icons.close,
iconDoneEdit: iconDoneEdit != null ? iconDoneEdit : Icons.check,
iconUndoEdit: iconUndoEdit != null ? iconUndoEdit : Icons.undo,
iconGPSPoint:
iconGPSPoint != null ? iconGPSPoint : Icons.add_location,
autoEditMode: autoEditMode != null ? autoEditMode : false,
pointDistance: pointDistance != null ? pointDistance : true,
targetCameraPosition:
targetCameraPosition != null ? targetCameraPosition : null,
trackingMode:
trackingMode != null ? trackingMode : TrackingMode.PLANAR,
enableDragMarker: enableDragMarker != null ? enableDragMarker : false)
.getLocation();
}