GeoJsonLayer.asset constructor

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

Implementation

GeoJsonLayer.asset(
  String name, {
  super.key,
  AssetBundle? bundle,
  this.onPoint,
  this.onPolyline,
  this.onPolygon,
  this.filter,
  this.styleDefaults,
  this.hitNotifier,
  this.polylineHitbox = 10,
}) : data = AssetGeoJson(name, bundle: bundle);