I’d like to use maps inside accordion blocks where you click a link and the map unfolds open. The issue so far with this using different accordion blocks is only a tiny corner of the map shows up when unveiled. I’m guessing it has to do with it not being able to render while closed. Is there some sort of work around for this?
You’re right about the cause (hidden elements have no size). There’s unfortunately no general workaround, because all accordions, tabs, etc. work differently and have different events. But there’s an example here that can be tailored to your specific case:
That script won’t work as-is, it’s an example for jQuery tabs and other controls usually have different event names for when they open. I checked the accordion documentation, but I didn’t see any events listed. If you’d like to send a URL with a map & accordion on it I’ll have a quick look and see if I can guess.