LatLng Class
April 10, 2018 ยท View on GitHub
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 |
:arrow_right: Returns boolean
toString()
Returns concat strings both lat and lng.
:arrow_right: Returns string
toUrlValue(precision?)
Returns concat strings both lat and lng.
| Params | Type | Details |
|---|---|---|
| precision | number | (optional)precision. Default is 6 |
:arrow_right: Returns string