PolygonLayer<R extends Object> constructor
const
PolygonLayer<R extends Object> ({
- Key? key,
- required List<
Polygon< polygons,R> > - bool useAltRendering = false,
- bool debugAltRenderer = false,
- bool polygonCulling = true,
- bool polygonLabels = true,
- bool drawLabelsLast = false,
- bool drawInSingleWorld = false,
- PolygonPainterFillMethod painterFillMethod = kIsWeb ? PolygonPainterFillMethod.evenOdd : PolygonPainterFillMethod.pathCombine,
- Color? invertedFill,
- LayerHitNotifier<
R> ? hitNotifier, - double simplificationTolerance = 0.3,
Create a new PolygonLayer for the FlutterMap widget.
Implementation
const PolygonLayer({
super.key,
required this.polygons,
this.useAltRendering = false,
this.debugAltRenderer = false,
this.polygonCulling = true,
this.polygonLabels = true,
this.drawLabelsLast = false,
this.drawInSingleWorld = false,
this.painterFillMethod = kIsWeb
? PolygonPainterFillMethod.evenOdd
: PolygonPainterFillMethod.pathCombine,
this.invertedFill,
this.hitNotifier,
super.simplificationTolerance,
}) : super();