Skip to content

Commit

Permalink
fix(googlemaps): fixes GoogleMapsLatLng class
Browse files Browse the repository at this point in the history
closes 658
  • Loading branch information
ihadeed committed Oct 8, 2016
1 parent d3e6f3b commit 11653ce
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/plugins/googlemaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 11653ce

Please sign in to comment.