Home > @magiclane/maps-sdk > Marker > fromRectangle

Marker.fromRectangle() method

Create marker from rectangle with top-left and bottom-right corners.

Signature:

static fromRectangle(topLeft: Coordinates, bottomRight: Coordinates): Marker;

Parameters

Parameter

Type

Description

topLeft

Coordinates

Top left corner coordinates

bottomRight

Coordinates

Bottom right corner coordinates

Returns:

Marker