@magiclane/maps-sdk
    Preparing search index...

    Class RectangleGeographicArea

    RectangleGeographicArea object.

    Implements

    Index

    Constructors

    Properties

    bottomRight: Coordinates

    Bottom-right coordinates of the rectangle

    topLeft: Coordinates

    Top-left coordinates of the rectangle

    Accessors

    • get centerPoint(): Coordinates

      Retrieves the center point of the geographic area.

      Returns Coordinates

      Coordinates object representing the center point of the area.

    • Create a new RectangleGeographicArea object with the same properties as the original.

      Returns RectangleGeographicArea

      A new RectangleGeographicArea object with the same properties

    • get isDefault(): boolean

      Checks if the geographic area has default values.

      Returns boolean

      true if the area has default values, false otherwise.

    • get isEmpty(): boolean

      Checks if the geographic area is empty.

      Returns boolean

      true if the area is empty, false otherwise.

    Methods

    • Checks if this rectangle completely contains another rectangle.

      Parameters

      Returns boolean

      True if this rectangle contains the other, false otherwise.

    • Checks if the specified point is contained within the geographic area.

      Parameters

      • point: Coordinates

        A Coordinates object representing the point to check.

      Returns boolean

      True if the point is within the geographic area, false otherwise.

    • Checks if this rectangle intersects with another rectangle.

      Parameters

      Returns boolean

      True if the rectangles intersect, false otherwise.

    • Resets the rectangle to default state.

      Returns void

    • Convert to JSON representation

      Returns any

    • String representation

      Returns string