MapWidget constructor

const MapWidget({
  1. Key? key,
  2. required GeoJsonFeatureCollection geoJson,
  3. required Projection projection,
  4. Color? fillColor,
  5. Color? strokeColor,
  6. double strokeWidth = 1.0,
  7. void onFeatureTap(
    1. GeoJsonFeature feature,
    2. Point position
    )?,
  8. bool antiAlias = true,
})

Creates a MapWidget.

Implementation

const MapWidget({
  super.key,
  required this.geoJson,
  required this.projection,
  this.fillColor,
  this.strokeColor,
  this.strokeWidth = 1.0,
  this.onFeatureTap,
  this.antiAlias = true,
});