Google Maps not showing up in Tabs
Permalink Browser Info Environment
Hi, I've several Google Maps and I wanted to use the tabs to break them up for each switch and view.
However, only the first tabs map shows up:
http://aircare.studio5d.com/index.php?cID=352...
Ideas on how to resolve this?
However, only the first tabs map shows up:
http://aircare.studio5d.com/index.php?cID=352...
Ideas on how to resolve this?
Type: | Ticket |
---|---|
Status: | Archived |
I have added a revised version of my old howto to the Magic Tabs documentation
https://demo.c5magic.co.uk/addons/magic-tabs/problem-solving...
[edited, corrected URL]
https://demo.c5magic.co.uk/addons/magic-tabs/problem-solving...
[edited, corrected URL]
thanks yes this makes sense!
Ryan (@mesuva) will be adding the revised template or similar to the next update of location map. He is familiar with the hidden render issue for Google maps, but hadn't anticipated it could become an issue with this block.
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.
To re-open this issue, reply to this message.
To re-open this issue, reply to this message.
There is a generic issue with Google Maps that means a map will not render properly if an attempt is made to render it while hidden.
The solution is to not actually render the map until its canvas area is visible, as described inhttps://legacy-documentation.concrete5.org/tutorials/improve-renderi...
This has been implemented in the core Google Maps block since c5.6, but not by Location Map.
I have attached a modified view.php for Location Map that implements the solution.
I am assuming you know how to use this as a replacement for the view.php in Location Maps or in an alternate block template. Let me know if you need further help with this.