flask-extensions / flask-extensions/Flask-GoogleMaps
Feature Request: Configurable collapse, i.e. show or hide default
- Dominant language
- Python
- Stars
- 655
- Forks
- 193
- PR merge metrics
- No merged PRs in 30d
Description
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:
`function showmap() { document.getElementById('sndmap_collapse').click(); } window.onload = showmap `
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.