mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-05-10 21:07:06 +08:00
Merge pull request #200 from ZiFFeL1992/master
Overwrite equals and toUrlValue
This commit is contained in:
commit
dfd9d60dfc
@ -994,11 +994,8 @@ export class GoogleMapsLatLng {
|
|||||||
this._objectInstance = new plugin.google.maps.LatLng(lat, lng);
|
this._objectInstance = new plugin.google.maps.LatLng(lat, lng);
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
equals(other: GoogleMapsLatLng): boolean {
|
equals(other: GoogleMapsLatLng): boolean {
|
||||||
return;
|
return this.lat === other.lat && this.lng === other.lng;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
@CordovaInstance({
|
||||||
@ -1008,10 +1005,9 @@ export class GoogleMapsLatLng {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CordovaInstance({
|
|
||||||
sync: true
|
|
||||||
})
|
|
||||||
toUrlValue(precision?: number): string {
|
toUrlValue(precision?: number): string {
|
||||||
return;
|
precision = precision || 6;
|
||||||
|
|
||||||
|
return this.lat.toFixed(precision) + ',' + this.lng.toFixed(precision);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user