setMarkerLocation method
Function to set marker locations
Implementation
void setMarkerLocation(String id, LatLng _location, Uint8List? markerIcon,
{String? title}) async {
_markers.add(Marker(
markerId: MarkerId("${uniqueID + id}"),
position: _location,
draggable: enableDragMarker,
icon: BitmapDescriptor.fromBytes(markerIcon!),
onDragEnd: (newLoc) {
if (enableDragMarker) {
updateNewMarkerLocation(id, newLoc);
}
},
infoWindow:
InfoWindow(title: title, snippet: "Area Polygon Nomor $id")));
notifyListeners();
}