marmat/google-maps-api-addons — pull request #10 by CagatayUlubay (2014-04-12 21:37:29+00:00)
Title: Fixed small bug

When:

var t = nDotC / nDotD;

if (t < 0.0) {
return null;
}

the position can't be calculated, because "null" has no property "left" and "top", also the marker is out of sighs and don't have to be calculated.