Leaflet.Heightgraph
Leaflet.Heightgraph copied to clipboard
Hide map, show only elevation profile
Hi:
Great plugin!!
Small question. Is there an option to show only the elevation profile and hide the map??
Thx, Peter
I am also trying to get the elevation profile in a container other than heightgraph-container. Anyone managed to do that, without changing the source code? Is there a property to change?
@PeterDroogers you can use the .getContainer() method to get the HeightGraph (hg) container and move it to another element.
Here I move it to a div named heightgraph
document.getElementById("heightgraph").appendChild(hg.getContainer());
Then you can hide the map container and leave only the heightgraph container visible.