PolylineLayerOptions constructor

PolylineLayerOptions({
  1. Key? key,
  2. List<Polyline> polylines = const [],
  3. bool polylineCulling = false,
  4. Stream<Null>? rebuild,
})

Implementation

PolylineLayerOptions({
  Key? key,
  this.polylines = const [],
  this.polylineCulling = false,
  Stream<Null>? rebuild,
}) : super(key: key, rebuild: rebuild) {
  if (polylineCulling) {
    for (var polyline in polylines) {
      polyline.boundingBox = LatLngBounds.fromPoints(polyline.points);
    }
  }
}