From 11653ce752726751540de37236c6d7c572a6785d Mon Sep 17 00:00:00 2001 From: Ibby Date: Sat, 8 Oct 2016 18:48:28 -0400 Subject: [PATCH] fix(googlemaps): fixes GoogleMapsLatLng class closes 658 --- src/plugins/googlemaps.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/plugins/googlemaps.ts b/src/plugins/googlemaps.ts index 19d095e65b..b98c73de4b 100644 --- a/src/plugins/googlemaps.ts +++ b/src/plugins/googlemaps.ts @@ -879,21 +879,22 @@ export class GoogleMapsLatLngBounds { * @private */ export class GoogleMapsLatLng { - private _objectInstance: any; - @InstanceProperty get lat(): number { return; } - @InstanceProperty get lng(): number { return; } + lat: number; + lng: number; constructor(lat: number, lng: number) { - this._objectInstance = new plugin.google.maps.LatLng(lat, lng); + this.lat = lat; + this.lng = lng; } equals(other: GoogleMapsLatLng): boolean { return this.lat === other.lat && this.lng === other.lng; } - @CordovaInstance({ sync: true }) - toString(): string { return; } + toString(): string { + return this.lat + ',' + this.lng; + } toUrlValue(precision?: number): string { precision = precision || 6;