Home > @magiclane/maps-sdk > RectangleGeographicArea
RectangleGeographicArea class
RectangleGeographicArea object.
Signature:
export declare class RectangleGeographicArea implements GeographicArea Implements: GeographicArea
Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Constructor |
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
Bottom-right coordinates of the rectangle | |||
|
|
Get the bounding box. | ||
|
|
Retrieves the center point of the geographic area. | ||
|
|
Create a new RectangleGeographicArea object with the same properties as the original. | ||
|
|
boolean | ||
|
|
boolean |
Checks if the geographic area is empty. | |
|
Top-left coordinates of the rectangle | |||
|
|
Retrieves the specific type of the geographic area. |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Checks if this rectangle completely contains another rectangle. | ||
|
Checks if the specified point is contained within the geographic area. | ||
|
Converts the rectangle to another geographic area type, if possible. | ||
|
Equality comparison | ||
|
|
Create from JSON representation | |
|
Checks if this rectangle intersects with another rectangle. | ||
|
Creates a new RectangleGeographicArea as the intersection of this rectangle and another rectangle. | ||
|
Creates a new RectangleGeographicArea as the union of this rectangle and another rectangle. | ||
|
Resets the rectangle to default state. | ||
|
Convert to JSON representation | ||
|
String representation |