I am trying to simply make an expanding list of Google Maps which allow you to locate an item. Here I have a static HTML page where you can click records and they will expand to show you a Google Map. The map, however, only comes through as grey until you resize the page.
Here is the page with the problem (the extension says php, but it doesn't actually have any): https://yt074.addons.la/tmp/track/list.php
I'm already calling google.maps.event.trigger(maps[i], 'resize');
within the code (as you can see by viewing source), and I have tried jQuery(window).trigger('resize');
, window.dispatchEvent(new Event('resize'));
and a few others to simulate a resizing of the window, but to no avail.
Here is a jsFiddle with the code from above literally copy/pasted into the fiddle and it works: https://jsfiddle.net/myingling/Lkdmp1zo/
Or here is a shorter version on my server which is not working: https://yt074.addons.la/tmp/track/fiddle.php
What am I missing on my server? Server is ubuntu running nginx on an AWS EC2 cluster, but once the code is client-side I don't understand why that would matter (but better safe to explain).