eagleoneraptor

toFixed(5)

Sep 8th, 2014
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.76 KB | None | 0 0
  1. diff --git a/src/turnPointMarker.js b/src/turnPointMarker.js
  2. index dc6093c..40aa793 100644
  3. --- a/src/turnPointMarker.js
  4. +++ b/src/turnPointMarker.js
  5. @@ -111,8 +111,8 @@ const DestinationMarker = new Lang.Class({
  6.      _onMarkerDrag: function() {
  7.          let query = Application.routeService.query;
  8.          let place = new Geocode.Place({
  9. -                        location: new Geocode.Location({ latitude: this.latitude,
  10. -                                                         longitude: this.longitude }) });
  11. +                        location: new Geocode.Location({ latitude: this.latitude.toFixed(5),
  12. +                                                         longitude: this.longitude.toFixed(5) }) });
  13.  
  14.          this._queryPoint.place = place;
  15.      }
Advertisement
Add Comment
Please, Sign In to add comment