update leaflet-routing

This commit is contained in:
Norbert Renner 2014-05-14 11:40:52 +02:00
parent 7936afdd66
commit f1cae03a80
10 changed files with 245 additions and 40 deletions

View file

@ -18,6 +18,11 @@ L.Util.extend(L.LineUtil, {
minDist = Infinity;
minPoint = latlng;
minPoint._feature = null; // containing layer
if (!opts || !opts.layers || !opts.layers.length) {
return minPoint;
}
map = opts.layers[0]._map; // @todo check for undef
for (i = 0; i < opts.layers.length; i++) {