GeoJsonLayer.asset constructor
GeoJsonLayer.asset(
- String name, {
- Key? key,
- AssetBundle? bundle,
- OnPointCallback? onPoint,
- OnPolylineCallback? onPolyline,
- OnPolygonCallback? onPolygon,
- FeatureFilterCallback? filter,
- GeoJsonStyleDefaults? styleDefaults,
- LayerHitNotifier<
Object> ? hitNotifier, - 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);