PolygonLayer constructor

PolygonLayer({
  1. Key? key,
  2. List<Polygon> polygons = const [],
  3. bool polygonCulling = false,
})

Implementation

PolygonLayer({
  super.key,
  this.polygons = const [],
  this.polygonCulling = false,
}) {
  if (polygonCulling) {
    for (final polygon in polygons) {
      polygon.boundingBox = LatLngBounds.fromPoints(polygon.points);
    }
  }
}