Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide map, show only elevation profile #132

Open
PeterDroogers opened this issue Sep 23, 2022 · 2 comments
Open

Hide map, show only elevation profile #132

PeterDroogers opened this issue Sep 23, 2022 · 2 comments

Comments

@PeterDroogers
Copy link

Hi:

Great plugin!!

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

Thx, Peter

@dimitrisdermanis
Copy link

dimitrisdermanis commented Oct 23, 2022

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants