Private
constructorPrivate
Optional
_areaarea cache.
Private
_bboxPrivate
Optional
_boundsbounds cache.
Private
_coordinatesStatic
Readonly
multiTypename for MPMultiPolygon.
Static
Readonly
pointTypename for MPPoint.
Static
Readonly
polygonTypename for MPPolygon.
Get the polygon's bounding box, the bounding box is in [GeoJson format]https://stevage.github.io/geojson-spec/#section-5
Update the polygon's bounding box, the bounding box must be in [GeoJson format]https://stevage.github.io/geojson-spec/#section-5
Get the coordinates as a collection in [GeoJSON format]https://stevage.github.io/geojson-spec/#section-3.1.6.
Update the coordinates list for the polygon, the coordinates must be in [GeoJSON format]https://stevage.github.io/geojson-spec/#section-3.1.6
Get the type of the polygon. see MPGeometry#polygon
Private
clearChecks whether a point is contained within the geometry.
Calculates the squared distance from the point to the closest edge in the polygon.
Parses the object to a JSON object that is compatible with the MapsIndoors SDK.
Static
createCreator for MPPolygon, used to decode JSON from the MapsIndoors SDK.
Generated using TypeDoc
MPPolygon is a collection of MPPoints that combine to form a single geographical area with a single body.
Export