Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@mapwhit/style-expressions",
"name": "@mapwhit/style-spec",
"version": "1.2.0",
"description": "Process expressions in map style.",
"author": {
Expand All @@ -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": {
Expand Down