mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
Overwrite equals and toUrlValue
This commit is contained in:
parent
49eb13ddee
commit
4c548581d6
@ -998,11 +998,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({
|
||||
@ -1012,10 +1009,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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user