Hi there,
I seem to be having trouble getting the Google Map field to properly render when inside an accordion pane. When posted outside of the hidden pane, it displays correctly, when inside a hidden pane, the map is offset by a considerable amount and mostly hidden outside the acf-map div. anyone have this issue and any solution?
In case it’s not obvious to others (it took me days to get the pieces to click)
ORIGINAL
$(document).ready(function(){
$('.acf-map').each(function(){
render_map( $(this) );
});
});
MODIFIED TO DEAL WITH RESIZE ON TAB/ACCORDION HEADER CLICK
$(document).ready(function(){
$( "#loc" ).click(function() {
$('.acf-map').each(function(){
render_map( $(this) );
});
});
});
Where #loc is the unique ID on the tab that calls up my map.
You could probably get rid of the $(document).ready(function(){ };