PolygonLayer<R extends Object> constructor

const PolygonLayer<R extends Object>({
  1. Key? key,
  2. required List<Polygon<R>> polygons,
  3. bool useAltRendering = false,
  4. bool polygonCulling = true,
  5. double simplificationTolerance = 0.5,
  6. bool polygonLabels = true,
  7. bool drawLabelsLast = false,
  8. LayerHitNotifier<R>? hitNotifier,
})

Create a new PolygonLayer for the FlutterMap widget.

Implementation

const PolygonLayer({
  super.key,
  required this.polygons,
  this.useAltRendering = false,
  this.polygonCulling = true,
  this.simplificationTolerance = 0.5,
  this.polygonLabels = true,
  this.drawLabelsLast = false,
  this.hitNotifier,
}) : assert(
        simplificationTolerance >= 0,
        'simplificationTolerance cannot be negative: $simplificationTolerance',
      );