GeoJSONFeatureCollection class

The GeoJSONFeatureCollection represents a collection of features.

Implemented types

Constructors

GeoJSONFeatureCollection(List<GeoJSONFeature> features)
The constructor for the features member.
GeoJSONFeatureCollection.fromJSON(String source)
The constructor from JSON string.
factory
GeoJSONFeatureCollection.fromMap(Map<String, dynamic> map)
The constructor from map.
factory

Properties

bbox List<double>?
An optional bounding box bbox of the GeoJSON object.
no setteroverride
features List<GeoJSONFeature?>
The features member is an array of GeoJSONFeature objects.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type GeoJSONType
The GeoJSONType type member of the GeoJSON object.
getter/setter pairoverride

Methods

findNearestFeature(double lat, double lon) GeoJSONFeature?
Finds the nearest GeoJSON feature to a given point.
findProperties(String property, String value, {bool contains = false}) List<GeoJSONFeature>
Finds all features where the specified property matches the given value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onAdd(GeoJSONFeature feature) → void
The callback function called when a feature is added.
onAddAll(Iterable<GeoJSONFeature?> features) → void
The callback function called when features are added.
onRemove(GeoJSONFeature feature) → void
The callback function called when a feature is removed.
toJSON({int indent = 0}) String
Converts the object to a JSON string representation.
override
toMap() Map<String, dynamic>
Converts GeoJSON object to a Map.
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override