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 |
Top left corner coordinates | |
|
bottomRight |
Bottom right corner coordinates |
Returns: