GeoJSONGeometryCollection class

A GeoJSON object representing a Geometry Collection.

A Geometry Collection is a geometry type which groups multiple geometries together.

Implemented types

Constructors

GeoJSONGeometryCollection(List<GeoJSONGeometry> geometries)
Constructs a new Geometry Collection with the given list of geometries.
GeoJSONGeometryCollection.fromJSON(String source)
Constructs a new Geometry Collection from a JSON string.
factory
GeoJSONGeometryCollection.fromMap(Map<String, dynamic> map)
Constructs a new Geometry Collection from a Map object.
factory

Properties

area double
Returns the area of the Geometry Collection, which is always 0.0.
no setteroverride
bbox List<double>
Returns the bounding box of the Geometry Collection.
no setteroverride
distance double
Returns the distance of the Geometry Collection, which is always 0.0.
no setteroverride
geometries List<GeoJSONGeometry>
A list of geometries included in this collection.
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
Specifies the GeoJSON type of this object.
getter/setter pairoverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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