Raruto / leaflet-elevation

Leaflet plugin that allows to add elevation profiles using d3js
GNU General Public License v3.0
254 stars 82 forks source link

Fix angulation of distance markers's arrows when `preferCanvas: false` #207

Closed makenshikuro closed 1 year ago

makenshikuro commented 2 years ago

Removed RAD to DEG angle

When calculating the slope with atan2 the degrees are obtained. I guess you don't need to transform RAD to DEG. I changed it and everything works perfectly.

Can you verify?

Raruto commented 1 year ago

Patch released in version 2.2.8