Leaflet.Heightgraph icon indicating copy to clipboard operation
Leaflet.Heightgraph copied to clipboard

Hide map, show only elevation profile

Open PeterDroogers opened this issue 2 years ago • 2 comments

Hi:

Great plugin!!

Small question. Is there an option to show only the elevation profile and hide the map??

Thx, Peter

PeterDroogers avatar Sep 23 '22 10:09 PeterDroogers

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?

dimitrisdermanis avatar Oct 23 '22 14:10 dimitrisdermanis

@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.

dimitrisdermanis avatar Oct 24 '22 14:10 dimitrisdermanis