polyline.dart 421 B

12345678910111213141516171819202122
  1. import '../../flutter_map.dart';
  2. class Polyline {
  3. String lineId;
  4. List<LatLng> points;
  5. PolylineType lineType = PolylineType.normal;
  6. //自定义线颜色
  7. String? color;
  8. //自定义线宽度 单位以及原生计算为准,Android为dp
  9. double? width;
  10. Polyline(
  11. {required this.lineId,
  12. required this.points,
  13. this.color,
  14. this.width,
  15. this.lineType = PolylineType.normal});
  16. }