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

Feature Request: Configurable collapse, i.e. show or hide default #73

Open
Herugrim opened this issue Jul 5, 2018 · 0 comments
Open

Comments

@Herugrim
Copy link
Contributor

Herugrim commented Jul 5, 2018

The collapse directive automatically hides the map but it would be nice if a default could be set, i would for example like to have the map visible by default but show the button to hide it. I tried to add this line as a temporary hack in my template to show the map onload but that does not work:

<script>function showmap() { document.getElementById('sndmap_collapse').click(); } window.onload = showmap </script>

EDIT: Adding document.getElementById('{{gmap.varname}}_collapse').click(); at the end of function init_{{gmap.identifier}}_button() in gmapjs.html does the trick, so an if on an extra parameter could do the trick.

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

1 participant