GeoJsonLayer.memory constructor

GeoJsonLayer.memory(
  1. Map<String, dynamic> data, {
  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.memory(
  Map<String, dynamic> data, {
  super.key,
  this.onPoint,
  this.onPolyline,
  this.onPolygon,
  this.filter,
  this.styleDefaults,
  this.hitNotifier,
  this.polylineHitbox = 10,
}) : data = MemoryGeoJson(data);