fix(googlemaps): fixes GoogleMapsLatLng class

closes 658
This commit is contained in:
Ibby 2016-10-08 18:48:28 -04:00
parent d3e6f3ba41
commit 11653ce752

View File

@ -879,21 +879,22 @@ export class GoogleMapsLatLngBounds {
* @private * @private
*/ */
export class GoogleMapsLatLng { export class GoogleMapsLatLng {
private _objectInstance: any;
@InstanceProperty get lat(): number { return; } lat: number;
@InstanceProperty get lng(): number { return; } lng: number;
constructor(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 { equals(other: GoogleMapsLatLng): boolean {
return this.lat === other.lat && this.lng === other.lng; return this.lat === other.lat && this.lng === other.lng;
} }
@CordovaInstance({ sync: true }) toString(): string {
toString(): string { return; } return this.lat + ',' + this.lng;
}
toUrlValue(precision?: number): string { toUrlValue(precision?: number): string {
precision = precision || 6; precision = precision || 6;