string<T extends Object> static method
- String data, {
- required FeatureCollectionProperties<
T> featureCollectionProperties, - bool polygonCulling = false,
- MapController? mapController,
- Key? key,
- PowerMarkerClusterOptions? powerClusterOptions,
- required Widget builder(
- FeatureCollectionProperties<
T> featureCollectionProperties, - Map<
String, dynamic> ? properties
- FeatureCollectionProperties<
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 thefeatureCollectionPropertiesand 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,
);
}