diff --git a/Readme.md b/Readme.md index 3d043a4..1a251eb 100644 --- a/Readme.md +++ b/Readme.md @@ -2,34 +2,36 @@ [![Build Status][build-image]][build-url] [![Dependency Status][deps-image]][deps-url] -# @mapwhit/style-expressions +# @mapwhit/style-spec Module to process expressions in map style. Based on the code for expressions processing in [maplibre-gl-js] (an open-source fork of [mapbox-gl-js], before their switch to a non-OSS license in December 2020.) ## Install ```sh -$ npm install --save @mapwhit/style-expressions +$ npm install --save @mapwhit/style-spec ``` ## Usage ```js -const styleExpressions = require('@mapwhit/style-expressions'); +import { createExpression } from '@mapwhit/style-spec'; + +const expression = createExpression(); ``` ## License BSD-3-Clause © [Natalia Kowalczyk](https://melitele.me) -[npm-image]: https://img.shields.io/npm/v/@mapwhit/style-expressions -[npm-url]: https://npmjs.org/package/@mapwhit/style-expressions +[npm-image]: https://img.shields.io/npm/v/@mapwhit/style-spec +[npm-url]: https://npmjs.org/package/@mapwhit/style-spec -[build-url]: https://github.com/mapwhit/style-expressions/actions/workflows/check.yaml -[build-image]: https://img.shields.io/github/actions/workflow/status/mapwhit/style-expressions/check.yaml?branch=main +[build-url]: https://github.com/mapwhit/style-spec/actions/workflows/check.yaml +[build-image]: https://img.shields.io/github/actions/workflow/status/mapwhit/style-spec/check.yaml?branch=main -[deps-image]: https://img.shields.io/librariesio/release/npm/@mapwhit/style-expressions -[deps-url]: https://libraries.io/npm/@mapwhit%2Fstyle-expressions +[deps-image]: https://img.shields.io/librariesio/release/npm/@mapwhit/style-spec +[deps-url]: https://libraries.io/npm/@mapwhit%2Fstyle-spec [mapbox-gl-js]: https://github.com/mapbox/mapbox-gl-js [maplibre-gl-js]: https://github.com/maplibre/maplibre-gl-js diff --git a/package.json b/package.json index 3ded0f8..cbd34c1 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@mapwhit/style-expressions", + "name": "@mapwhit/style-spec", "version": "1.2.0", "description": "Process expressions in map style.", "author": { @@ -11,11 +11,11 @@ "exports": "./lib/expression/index.js", "repository": { "type": "git", - "url": "git+https://github.com/mapwhit/style-expressions.git" + "url": "git+https://github.com/mapwhit/style-spec.git" }, "license": "BSD-3-Clause", "keywords": [ - "style-expressions", + "style-spec", "map" ], "dependencies": {