pivotql-compiler-mapboxgl
v0.3.1
Published
Compile PivotQL ASTs to mapbox filter queries.
Downloads
14
Readme
PivotQL compiler for mapbox
Produces mapbox filter queries from PivoQL ASTs.
Install
npm install pivotql-compiler-mapboxgl
Example
import {parse} from 'pivotql-parser-expression';
import {compile} from 'pivotql-compiler-mapboxgl';
const query = '( height <= 20 or favorites.color == "green" ) and firstname in ["john", "doug"]';
const queryMB = compile(parse(query))
// Use query filter in layer style
More information
See main repository for more information.