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?

Type: Ticket
Status: Archived
plschneide
View Replies:
JohntheFish replied on at Permalink Reply 1 Attachment
JohntheFish
It looks like you are using msv_location_map.

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.
JohntheFish replied on at Permalink Reply
JohntheFish
I have added a revised version of my old howto to the Magic Tabs documentation

https://www.c5magic.co.uk/add-ons/magic-tabs/problem-solving/...

[edited, corrected URL]
plschneide replied on at Permalink Reply
plschneide
thanks yes this makes sense!
JohntheFish replied on at Permalink Reply
JohntheFish
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.
admin replied on at Permalink Reply
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.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.2.1
Version Installed - 8.2.1
Database Version - 20170802000000

# concrete5 Packages
Location Map (1.0.6), Magic Tabs (7.1.2), Migration Tool (0.5.4), Quick Tabs (1.0), Responsive Embed (1.0.1), Responsive Theme (2.1.9), Zoomer (1.0.1)

# concrete5 Overrides
None

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache/2.4.23 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4

# Server API
cgi-fcgi

# PHP Version
5.5.38

# PHP Extensions
bcmath, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, exif, fileinfo, filter, ftp, gd, hash, iconv, imap, json, libxml, mbstring, mcrypt, mysql, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, Reflection, session, SimpleXML, sockets, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 120M
sql.safe_mode - Off
upload_max_filesize - 115M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.