We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: