So, that totally worked for the accordion. Thanks a tun. But I’m afraid it gets a bit more complicated ??
Here’s the catch, the place where I intended to use the flexiblemap was already within an accordion. Which is to say, I needed an “accordion effect” within an accordion — which is why I was using the second “accordion” plugin (Collapse-O-Matic with the “Expand” shortcode) — which apparently doesn’t cause an ‘event’ that can cause the flexiblemap to resize.
I tried an accordion within an accordion, but the innermost accordion just terminates the outer accordion, so that won’t work.
The plugin has another option called a ‘toggle’ (which is just a single accordion item, not within a set of others) — but alas, the event name must not be the same because the map still didn’t show up correctly within the toggle ??
I tried (on a whim) updating the PHP you provided as follows, but it still didn’t cause for the “toggle” to properly display the map.
<script>
jQuery("body").on("toggleactivate", function(event, ui) {
if (ui.newPanel.length) {
jQuery("#" + ui.newPanel[0].id + " div.flxmap-container").each(function() {
var flxmap = window[this.getAttribute("data-flxmap")];
flxmap.redrawOnce();
});
}
});
</script>
The broken example can still be seen here:
https://www.saultimate.org/test/
I feel you’ve already gone above and beyond to help me, with the creating of the new PHP Plugin and the quick responses. I am sheepishly crawling back to beg you for additional advice from someone far more talented than I. Any help is greatly appreciated.