diff --git a/src/plugins/googlemaps.ts b/src/plugins/googlemaps.ts index 24a8befa4..a7711c582 100644 --- a/src/plugins/googlemaps.ts +++ b/src/plugins/googlemaps.ts @@ -994,11 +994,8 @@ export class GoogleMapsLatLng { this._objectInstance = new plugin.google.maps.LatLng(lat, lng); } - @CordovaInstance({ - sync: true - }) equals(other: GoogleMapsLatLng): boolean { - return; + return this.lat === other.lat && this.lng === other.lng; } @CordovaInstance({ @@ -1008,10 +1005,9 @@ export class GoogleMapsLatLng { return; } - @CordovaInstance({ - sync: true - }) toUrlValue(precision?: number): string { - return; + precision = precision || 6; + + return this.lat.toFixed(precision) + ',' + this.lng.toFixed(precision); } }