mgibbs189

{{gist file=”custom.php” lang=”php”}}
<?php

// Add this and below
add_action( ‘wp_footer’, function() {
?>
<script>
(function($) {
google.maps.event.addListenerOnce(facetwp_map, ‘idle’, function() {
$(window).resize(function() {
var xVal = $(window).width() < 767 ? 0 : 400;
facetwp_map.panBy(xVal, 0);
});
$(window).trigger(‘resize’);
});
})(jQuery);
</script>
<?php
}, 100 );

{{/gist}}