Home > @magiclane/maps-sdk > PolygonGeographicArea
PolygonGeographicArea class
PolygonGeographicArea object.
Signature:
export declare class PolygonGeographicArea implements GeographicArea Implements: GeographicArea
Constructors
Constructor | Modifiers | Description |
|---|---|---|
Constructor |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| Get the bounding box. | ||
| Retrieves the center point of the geographic area. | ||
List of coordinates defining the polygon | |||
| boolean | ||
| boolean | Checks if the geographic area is empty. | |
| Retrieves the specific type of the geographic area. |
Methods
Method | Modifiers | Description |
|---|---|---|
Checks if the specified point is contained within the geographic area. | ||
Converts the polygon to another geographic area type, if possible. | ||
Equality comparison | ||
| Create from JSON representation | |
Resets the polygon to default state. | ||
Convert to JSON representation | ||
JSON.stringify hook: native calls receive the toJson() form (lowercase keys plus type), which is what the engine's area parser expects. | ||
String representation |