addLineFromGeoPoints method

Future<void> addLineFromGeoPoints(
  1. {@required String name,
  2. @required List<GeoPoint> geoPoints,
  3. double width = 3.0,
  4. Color color = Colors.green,
  5. bool isDotted = false}
)

Add a line on the map

Implementation

Future<void> addLineFromGeoPoints(
    {@required String name,
    @required List<GeoPoint> geoPoints,
    double width = 3.0,
    Color color = Colors.green,
    bool isDotted = false}) async {
  final points =
      GeoSerie(type: GeoSerieType.line, name: "serie", geoPoints: geoPoints)
          .toLatLng();
  await _linesState.addLine(
      name: name,
      points: points,
      color: color,
      width: width,
      isDotted: isDotted);
}