client/locations-list-map.js
// Then set the isSet property of all filters with the same display name correspondingly and call updating methods
Then set the isSet property of all filters with the same display name correspondingly and call updating methods
Then set the isSet property of all filters with the same display name correspondingly and call updating methods
function onFilterChange(data, prefix, idx, selected, filters) {
  const primaryFilter = filters[prefix] && filters[prefix][Object.keys(filters[prefix])[idx]];
  if (!primaryFilter) {
    return;
  }
  const matchingFilterKeys = Object.keys(filters[prefix]).filter((filterKey) => {
    const matchingFilter = filters[prefix][filterKey];
    return matchingFilter && matchingFilter.name === primaryFilter.name;
  });
  matchingFilterKeys.forEach((matchingFilterKey) => {
    const filter = filters[prefix][matchingFilterKey];
    if (selected) {
      filter.isSet = true;
    } else {
      filter.isSet = false;
    }
  });
  updateFilters(filters);
  refreshList(data, filters);
  showMarkers(data, filters, false);
}
function onFilterChange ( data , prefix , idx , selected , filters ) { const primaryFilter = filters [ prefix ] && filters [ prefix ] [ Object . keys ( filters [ prefix ] ) [ idx ] ] ; if ( ! primaryFilter ) { return ; } const matchingFilterKeys = Object . keys ( filters [ prefix ] ) . filter ( ( filterKey ) => { const matchingFilter = filters [ prefix ] [ filterKey ] ; return matchingFilter && matchingFilter . name === primaryFilter . name ; } ) ; matchingFilterKeys . forEach ( ( matchingFilterKey ) => { const filter = filters [ prefix ] [ matchingFilterKey ] ; if ( selected ) { filter . isSet = true ; } else { filter . isSet = false ; } } ) ; updateFilters ( filters ) ; refreshList ( data , filters ) ; showMarkers ( data , filters , false ) ; }
Then set the isSet property of all filters with the same display name correspondingly and call updating methods
Then set the isSet property of all filters with the same display name correspondingly and call updating methods
// Also apply filters that have the same display name // Calls on updateFilters to update the applied property of the filters // Calls on refreshList to re-render the displayed list // Call on showMarkers to re-render the marker and clusters