oam-browser-filters

2.0.0 • Public • Published

oam-browser-filters

The grid filters used by the oam-browser front end

Usage

var filters = require('oam-browser-filters')

var combo1 = filter.getCombination('all', 'all', 'all')
var combo2 = filter.getCombination('week', 'medium', 'service')

console.log(combo2.key) // the key used in the vector tile grid data
console.log(combo2.searchParams) // the oam-catalog search parameters associated w this combination of filters.

console.log(filters.getAllCombinations()) // all the possible filter combinations

Readme

Keywords

none

Package Sidebar

Install

npm i oam-browser-filters

Weekly Downloads

1

Version

2.0.0

License

MIT

Last publish

Collaborators

  • anandthakker