MPMultiPolygon class
MPMultiPolygon is a collection of MPPolygons that combine to form a single geographical area with multiple bodies
- Inheritance
-
- Object
- MapsIndoorsObject
- MPGeometry
- MPMultiPolygon
Constructors
- MPMultiPolygon()
- Create a empty MPMultiPolygon, remember to set coordinates for proper use
Properties
-
area
→ Future<
num?> -
Get the polygon's area, this is the combined area of all the polygons in the MPMultiPolygon
no setteroverride
-
bbox
↔ List<
num> -
Get the polygon's bounding box, the bounding box is in GeoJson format
getter/setter pair
- bounds → MPBounds
-
Get the polygon's bounds. If bbox is present then that will be used, otherwise a MPBounds
will be created from the coordinates of the polygon
no setter
-
coordinates
↔ List<
List< List< >List< >num> > -
Get the coordinates as a collection in GeoJSON format
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- position → MPPoint
-
Get the position of the polygon, which is roughly the center
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
Used to determine the proper type of a MPGeometry
no setteroverride
Methods
-
contains(
MPPoint point) → Future< bool?> -
Check whether a
point
is contained within the geometryinherited -
getSquaredDistanceToClosestEdge(
MPPoint point) → Future< num?> -
Calculates the squared distance from the
point
to the closest edge in the polygon -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the MPMultiPolygon to a JSON representation that can be parsed by the MapsIndoors Platform SDK
override
-
toMPPolygons(
) → List< MPPolygon> - Converts the MPMultiPolygon to a collection of MPPolygons
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
dynamic json) → MPMultiPolygon? - Attempts to build a MPMultiPolygon from a JSON object, this method will decode the object if needed