<?php
add_filter( 'facetwp_map_marker_args', function( $args, $post_id ) {
$field = get_field( 'image_field_name', $post_id );
$args['icon'] = $field['url'];
return $args;
}, 10, 2 );
add_filter( 'facetwp_map_marker_args', function( $args, $post_id ) {
$field = get_field( 'image_field_name', $post_id );
$args['icon'] = $field;
return $args;
}, 10, 2 );
add_filter( 'facetwp_map_marker_args', function( $args, $post_id ) {
$field = get_field( 'image_field_name', $post_id );
$args['icon'] = wp_get_attachment_image_src( $field );
return $args;
}, 10, 2 );