drawRoadManually method

Future<String> drawRoadManually(
  1. List<GeoPoint> path,
  2. RoadOption roadOption
)

drawRoadManually

if you have you own routing api you can use this method to draw your route manually and you can customize the color,width of the route zoom into the boundingbox and show POIs of the route

return String unique key can be used to delete road paramteres :

path : (list of GeoPoint) path of the road

roadOption : (RoadOption) define styles of the road

Implementation

Future<String> drawRoadManually(
  List<GeoPoint> path,
  RoadOption roadOption,
) async {
  return await osmBaseController.drawRoadManually(
    UniqueKey().toString(),
    path,
    roadOption,
  );
}