GIScience / Leaflet.Heightgraph

Leaflet plugin to visualize height information and road attributes.
https://giscience.github.io/Leaflet.Heightgraph
MIT License
100 stars 42 forks source link

hg.resize() resets chosen category #97

Closed jaluebbe closed 4 years ago

jaluebbe commented 4 years ago

I connected the resize() method to an event listener for window.resize to fit the graph to the window width. Whenever resize() is called, the graph is resetted to the first category.