Skip to content

Commit 8576dea

Browse files
authored
Merge pull request #3 from feddovanede/patch-1
Handle Mendix object decimal attribute precision limitation of 8 decimal places.
2 parents f950eea + 1e12ea5 commit 8576dea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/GeoLocationForPhoneGap/widget/GeoLocationForPhoneGap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ define([
7878
},
7979

8080
_geolocationSuccess: function(position) {
81-
this._obj.set(this.latAttr, position.coords.latitude);
82-
this._obj.set(this.longAttr, position.coords.longitude);
81+
this._obj.set(this.latAttr, +position.coords.latitude.toFixed(8));
82+
this._obj.set(this.longAttr, +position.coords.longitude.toFixed(8));
8383
this._executeMicroflow();
8484
},
8585

0 commit comments

Comments
 (0)