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
Original issue reported on code.google.com by
bbr...@gmail.com
on 27 Apr 2009 at 9:35