update leaflet-routing
This commit is contained in:
parent
7936afdd66
commit
f1cae03a80
10 changed files with 245 additions and 40 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue