res');
            }

            // Run through the selected features and set a filter
            // to match features with unique FIPS codes to activate
            // the `counties-highlighted` layer.
            var filter = features.reduce(function(memo, feature) {
                memo.push(feature.properties.FIPS);
                return memo;
            }, ['in', 'FIPS']);

            map.setFilter("counties-highlighted", filter);
        }

        map.dragPan.enable();
    }

    map.on('mousemo