pivotql-compiler-mapboxgl

0.3.1 • Public • Published

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.

Package Sidebar

Install

npm i pivotql-compiler-mapboxgl

Weekly Downloads

7

Version

0.3.1

License

MIT

Unpacked Size

22.6 kB

Total Files

10

Last publish

Collaborators

  • jrmi