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.addData() causes toggling between expanded and minmized #94

Closed jaluebbe closed 4 years ago

jaluebbe commented 4 years ago

I am using https://unpkg.com/leaflet.heightgraph@1.1.0/dist/L.Control.Heightgraph.min.css and https://unpkg.com/leaflet.heightgraph@1.1.0/dist/L.Control.Heightgraph.min.js . The HeightGraph hg is initialized with expand=true option and stays minimized when it is added to the map. When I call hg.addData(geojson); the graph becomes visible. Calling addData again minimizes the graph.

Trying hg.addData(geojson1); in the console of https://giscience.github.io/Leaflet.Heightgraph/ causes the arrow selection symbols to disappear instead. There, https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.css and https://unpkg.com/leaflet@1.0.0-rc.3/dist/leaflet.js seem to be used.