facetwp trigger open of marker on map

djrmom

{{gist file=”facet.js” lang=”javascript”}}
(function($) {
$(document).on(‘click’, ‘.post-item’, function() {
var postid = $(this).attr(‘data-id’);
var markers = FWP_MAP.get_post_markers(postid);
$.each( markers, function( key, value ) {
google.maps.event.trigger(value, ‘click’);
});
});
})(jQuery);
{{/gist}}