facetwp trigger open of marker on map

(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);