GeoJsonLayer constructor

const GeoJsonLayer({
  1. Key? key,
  2. required GeoJsonProvider data,
  3. OnPointCallback? onPoint,
  4. OnPolylineCallback? onPolyline,
  5. OnPolygonCallback? onPolygon,
  6. FeatureFilterCallback? filter,
  7. GeoJsonStyleDefaults? styleDefaults,
  8. LayerHitNotifier<Object>? hitNotifier,
  9. double polylineHitbox = 10,
})

Creates a layer instance. You might be better off using a specialized constructor:

Implementation

const GeoJsonLayer({
  super.key,
  required this.data,
  this.onPoint,
  this.onPolyline,
  this.onPolygon,
  this.filter,
  this.styleDefaults,
  this.hitNotifier,
  this.polylineHitbox = 10,
});