title: FacetWP map change map-markers based on facet selection
body: <p>At the moment I'm working on a project with WordPress, FacetWP and the map facet (that comes with FacetWP). I made a custom marker to show on the map like this:</p>
  
  <pre><code>// Custom markers for Map
  add_filter( 'facetwp_map_marker_args', function( $args, $post_id ) {
  
    $markerUrl = get_bloginfo('template_url') . '/img/dealer-pin.png';
  
    $args['icon'] = array(
      'url' =&gt; $markerUrl,
      'scaledSize' =&gt; array(
        'width' =&gt; 23,
        'height' =&gt; 30
      )
    );
    return $args;
  }, 10, 2 );
  </code></pre>
  
  <p>But I would like to change the markerURL based on another facet choice. 
  Unfortunately I don't know how to get the other facet value inside this filter. I tried something like this (but this doesn't work):</p>
  
  <pre><code>// Custom markers for Map
  add_filter( 'facetwp_map_marker_args', function( $args, $post_id ) {
  
    if( 'bezoekertype' == $args['facet']['name'] ) {
      if( $args['facet']['values'] == 'toon-bij-zakelijk' ) {
        return $markerUrl = get_bloginfo('template_url') . '/img/dealer-pin-2.png';
      } else {
        return $markerUrl = get_bloginfo('template_url') . '/img/dealer-pin.png';
      }
    }
  
    $args['icon'] = array(
      'url' =&gt; $markerUrl,
      'scaledSize' =&gt; array(
        'width' =&gt; 23,
        'height' =&gt; 30
      )
    );
    return $args;
  }, 10, 2 );
  </code></pre>
  
  <p>If anybody could help this would be greatly appreciated.</p>