string<T extends Object> static method

Widget string<T extends Object>(
  1. String data, {
  2. required FeatureCollectionProperties<T> featureCollectionProperties,
  3. bool polygonCulling = false,
  4. MapController? mapController,
  5. Key? key,
  6. PowerMarkerClusterOptions? powerClusterOptions,
  7. required Widget builder(
    1. FeatureCollectionProperties<T> featureCollectionProperties,
    2. Map<String, dynamic>? properties
    ),
})

Parses and displays GeoJSON feature collections from a string as a Widget.

  • data: The GeoJSON data as a string.
  • featureCollectionProperties: Properties to customize the appearance of the feature collections.
  • polylineCulling: A boolean indicating whether polyline culling is enabled (default is false).
  • polygonCulling: A boolean indicating whether polygon culling is enabled (default is false).
  • mapController: An optional MapController for controlling the map view.
  • key: An optional Key for identifying the returned Widget.
  • builder: A function that takes the featureCollectionProperties and a map of feature properties and returns a Widget to render the features.

Returns a Widget displaying the parsed GeoJSON feature collections.

Implementation

static Widget string<T extends Object>(
  String data, {
  required FeatureCollectionProperties<T> featureCollectionProperties,
  bool polygonCulling = false,
  MapController? mapController,
  Key? key,
  PowerMarkerClusterOptions? powerClusterOptions,
  required Widget Function(
    FeatureCollectionProperties<T> featureCollectionProperties,
    Map<String, dynamic>? properties,
  )
  builder,
}) {
  return _string(
    data,
    powerClusterOptions: powerClusterOptions,
    featureCollectionPropertie: featureCollectionProperties,
    key: key,
    builder: builder,
    polygonCulling: polygonCulling,
    mapController: mapController,
  );
}