cybersthang / gmaps-utility-library-dev

Automatically exported from code.google.com/p/gmaps-utility-library-dev
0 stars 0 forks source link

Fault in SnapToRoute.prototype.getDistAlongRoute #107

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Call the function with a custom latlng.

What is the expected output? What do you see instead?
Get distance along route for that latlng. Instead it uses the latlng of the
marker at all time.

SnapToRoute.prototype.getDistAlongRoute = function (latlng) {
  if (typeof(opt_latlng) === 'undefined') {
    latlng = this.marker_.getLatLng();
  }

should be:

SnapToRoute.prototype.getDistAlongRoute = function (latlng) {
  if (typeof(latlng) === 'undefined') {
    latlng = this.marker_.getLatLng();
  }

Please use labels and text to provide additional information.

Original issue reported on code.google.com by bbr...@gmail.com on 27 Apr 2009 at 9:35

GoogleCodeExporter commented 8 years ago
Fixed in revision 991.

Special thanks to Steve Lambert for locating this bug.

Original comment by bbr...@gmail.com on 27 Apr 2009 at 9:39