GeoJsonLayer.file constructor

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

Implementation

GeoJsonLayer.file(
  File file, {
  super.key,
  this.onPoint,
  this.onPolyline,
  this.onPolygon,
  this.filter,
  this.styleDefaults,
  this.hitNotifier,
  this.polylineHitbox = 10,
}) : data = FileGeoJson(file);