We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 35a4a9e + 666d493 commit 43f47dbCopy full SHA for 43f47db
src/L.Routing.Control.js
@@ -92,6 +92,11 @@
92
map.removeLayer(this._line);
93
}
94
map.removeLayer(this._plan);
95
+ if (this._alternatives && this._alternatives.length > 0) {
96
+ for (var i = 0, len = this._alternatives.length; i < len; i++) {
97
+ map.removeLayer(this._alternatives[i]);
98
+ }
99
100
return L.Routing.Itinerary.prototype.onRemove.call(this, map);
101
},
102
0 commit comments