Add toJSON to LatLng class (#12075)

Reference: https://developers.google.com/maps/documentation/javascript/reference#LatLng
This commit is contained in:
Mohsen Azimi
2016-10-19 06:14:07 -07:00
committed by Masahiro Wakame
parent e8348095c4
commit 6ce02d59a4

View File

@@ -1797,6 +1797,8 @@ declare namespace google.maps {
toString(): string;
/** Returns a string of the form "lat,lng". We round the lat/lng values to 6 decimal places by default. */
toUrlValue(precision?: number): string;
/** Converts to JSON representation. This function is intended to be used via JSON.stringify. */
toJSON(): LatLngLiteral;
}
export type LatLngLiteral = { lat: number; lng: number }