Skip to content

Latest commit

 

History

History
75 lines (56 loc) · 1018 Bytes

File metadata and controls

75 lines (56 loc) · 1018 Bytes

LatLng Class

let position: LatLng = new LatLng(35.12345, -127.01234);

new LatLng(lat, lng)

Params Type Details
lat number Latitude
lng number Longitude

Instance members

equals(other)

Returns true if both are the same position.

Params Type Details
other ILatLng another position

➡️ Returns boolean

toString()

Returns concat strings both lat and lng.

➡️ Returns string

toUrlValue(precision?)

Returns concat strings both lat and lng.

Params Type Details
precision number (optional)precision. Default is 6

➡️ Returns string