Open mheigl opened 7 years ago
Hi!
I noticed that dragging a route throws a JS error as in layer.js in line 291 this._routePolyline()._originalPoints; is undefined.
It seems that _originalPoints is not available anymore in newer Leaflet versions. I was able to fix it by converting the latlngs:
var positions = this._routePolyline()._latlngs; for (var j = 0; j < positions.length; j++) { positions[j] = this._map.latLngToLayerPoint(positions[j]); }
Best regards, Michael
Hi!
I noticed that dragging a route throws a JS error as in layer.js in line 291 this._routePolyline()._originalPoints; is undefined.
It seems that _originalPoints is not available anymore in newer Leaflet versions. I was able to fix it by converting the latlngs:
Best regards, Michael