'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _featureFilterGeojson = require('feature-filter-geojson');

var _featureFilterGeojson2 = _interopRequireDefault(_featureFilterGeojson);

var _reselect = require('reselect');

var _filterable_features = require('./filterable_features');

var _filterable_features2 = _interopRequireDefault(_filterable_features);

var _mapbox_filter = require('./mapbox_filter');

var _mapbox_filter2 = _interopRequireDefault(_mapbox_filter);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var getFilteredFeatures = (0, _reselect.createSelector)(_filterable_features2.default, _mapbox_filter2.default, function (features, filter) {
  return features.filter((0, _featureFilterGeojson2.default)(filter));
});

exports.default = getFilteredFeatures;
//# sourceMappingURL=filtered_features.js.map