7.0.2 • Published 1 year ago

windshaft v7.0.2

Weekly downloads
280
License
BSD-3-Clause
Repository
github
Last release
1 year ago

Windshaft Build Status

A Node.js map tile library for PostGIS and torque.js, with CartoCSS styling.

  • Can render arbitrary SQL queries
  • Generates image and UTFGrid interactivity tiles
  • Accepts, stores, serves, and applies map styles written in CartoCSS
  • Supports re-projections

Windshaft is a library used by CARTO, a location intelligence and data visualization tool.

Examples

Playing with colors by @andrewxhill Circumpolar Arctic Vegetation by @andrewxhill Bolivia deforestation by @saleiva Traffic accidents by @rochoa

Build

Requirements:

Install

To fetch and build all node-based dependencies, run:

$ npm install

Installing Mapnik

Note: only needed while developing Mapnik and/or node-mapnik.

node-mapnik comes compiled for some platforms and architectures, in case you need it you can always compile, package and install it manually. The recommended option is via binaries, see mason and install Mapnik like:

$ mason install mapnik <version>

Where <version> is the latest released version of Mapnik. You can also use other alternatives:

Usage

Probably one of the more advanced uses of Windshaft library can be found at Windshaft-cartodb project.

Test

$ npm test

Coverage

$ npm run cover

Open ./coverage/lcov-report/index.html.

Docker support

We provide docker images just for testing and continuous integration purposes:

You can find instructions to install Docker, download, and update images here.

Useful npm scripts

Run test in a docker image with a specific Node.js version:

$ DOCKER_IMAGE=<docker-image-tag> NODE_VERSION=<nodejs-version> npm run test:docker

Where:

  • <docker-image-tag>: the tag of required docker image, e.g. carto/nodejs-xenial-pg1121:latest
  • <nodejs-version>: the Node.js version, e.g. 10.15.1

In case you need to debug:

$ DOCKER_IMAGE=<docker-image-tag> npm run docker:bash

Troubleshooting

Fonts: Invalid value for text-face-name

You need to install fonts at system level to be able to use them. If you face an issue like Invalid value for text-face-name, the type font is expected. DejaVu Sans Book (of type string) was given. probably you don't have the required fonts, try to install DejaVu fonts or any other font needed.

Contributing

Versioning

We follow SemVer for versioning. For available versions, see the tags on this repository.

License

This project is licensed under the BSD 3-clause "New" or "Revised" License. See the LICENSE file for details.

7.0.2

1 year ago

7.0.1

5 years ago

7.0.0

5 years ago

6.0.0

5 years ago

5.6.4

5 years ago

5.6.3

5 years ago

5.6.2

5 years ago

5.6.1

5 years ago

5.6.0

5 years ago

5.5.1

5 years ago

5.5.0

5 years ago

5.4.0

6 years ago

5.3.0

6 years ago

5.2.1

6 years ago

5.2.0

6 years ago

5.1.1

6 years ago

5.1.0

6 years ago

5.0.0

6 years ago

4.13.5

6 years ago

4.13.4

6 years ago

4.13.3

6 years ago

4.13.2

6 years ago

4.13.1

6 years ago

4.13.0

6 years ago

4.12.3

6 years ago

4.12.2

6 years ago

4.12.1

6 years ago

4.12.0

6 years ago

4.11.5

6 years ago

4.11.4

6 years ago

4.11.3

6 years ago

4.11.2

6 years ago

4.11.1

6 years ago

4.11.0

6 years ago

4.10.0

6 years ago

4.9.0

6 years ago

4.8.3

6 years ago

4.8.2

6 years ago

4.8.1

7 years ago

4.8.0

7 years ago

4.7.3

7 years ago

4.7.2

7 years ago

4.7.1

7 years ago

4.7.0

7 years ago

4.6.0

7 years ago

4.5.7

7 years ago

4.5.6

7 years ago

4.5.5

7 years ago

4.5.4

7 years ago

4.5.3

7 years ago

4.5.2

7 years ago

4.5.1

7 years ago

4.5.0

7 years ago

4.4.0

7 years ago

4.3.3

7 years ago

4.3.2

7 years ago

4.3.1

7 years ago

4.3.0

7 years ago

4.2.0

7 years ago

4.1.1

7 years ago

4.1.0

7 years ago

4.0.1

7 years ago

4.0.0

7 years ago

3.3.3

7 years ago

3.3.2

7 years ago

3.3.1

7 years ago

3.3.0

7 years ago

3.2.2

7 years ago

3.2.1

8 years ago

3.2.0

8 years ago

3.1.2

8 years ago

3.1.1

8 years ago

3.1.0

8 years ago

3.0.1

8 years ago

3.0.0

8 years ago

2.8.0

8 years ago

2.7.0

8 years ago

2.6.5

8 years ago

2.6.4

8 years ago

2.6.3

8 years ago

2.6.2

8 years ago

2.6.1

8 years ago

2.6.0

8 years ago

2.5.0

8 years ago

2.4.2

8 years ago

2.4.1

8 years ago

2.4.0

8 years ago

2.3.0

9 years ago

2.2.0

9 years ago

2.1.0

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.19.0

9 years ago

1.18.0

9 years ago

1.17.3

9 years ago

1.17.2

9 years ago

1.17.1

9 years ago

1.17.0

9 years ago

1.16.1

9 years ago

1.16.0

9 years ago

1.15.0

9 years ago

1.14.0

9 years ago

1.13.2

9 years ago

1.13.1

9 years ago

1.13.0

9 years ago

1.12.0

9 years ago

1.11.1

9 years ago

1.11.0

9 years ago

1.10.1

9 years ago

1.10.0

9 years ago

1.9.0

9 years ago

1.8.3

9 years ago

1.8.2

9 years ago

1.8.1

9 years ago

1.8.0

9 years ago

1.7.0

9 years ago

1.6.1

9 years ago

1.6.0

9 years ago

1.5.0

9 years ago

1.4.0

9 years ago

1.3.0

9 years ago

1.2.0

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.51.0

9 years ago

0.50.0

9 years ago

0.49.0

9 years ago

0.48.0

9 years ago

0.47.0

9 years ago

0.46.1

9 years ago

0.46.0

9 years ago

0.45.0

10 years ago

0.44.1

10 years ago

0.44.0

10 years ago

0.43.0

10 years ago

0.42.2

10 years ago

0.42.1

10 years ago

0.42.0

10 years ago

0.41.0

10 years ago

0.40.0

10 years ago

0.39.0

10 years ago

0.38.2

10 years ago

0.38.1

10 years ago

0.38.0

10 years ago

0.37.5

10 years ago

0.37.4

10 years ago

0.37.3

10 years ago

0.37.2

10 years ago

0.37.1

10 years ago

0.37.0

10 years ago

0.36.0

10 years ago

0.35.1

10 years ago

0.19.4

11 years ago

0.19.3

11 years ago

0.19.2

11 years ago

0.18.2

11 years ago

0.18.1

11 years ago

0.18.0

11 years ago

0.17.2

11 years ago

0.17.1

11 years ago

0.17.0

11 years ago

0.16.0

11 years ago

0.15.1

11 years ago

0.15.0

11 years ago

0.14.5

11 years ago

0.14.4

11 years ago

0.14.3

11 years ago

0.14.2

11 years ago

0.14.1

11 years ago

0.13.7

11 years ago

0.13.6

11 years ago

0.13.5

11 years ago

0.13.4

11 years ago

0.13.3

11 years ago

0.13.2

11 years ago

0.13.1

11 years ago

0.13.0

11 years ago

0.12.10

11 years ago

0.12.9

11 years ago

0.12.8

11 years ago

0.12.7

12 years ago

0.12.6

12 years ago

0.12.5

12 years ago

0.12.4

12 years ago

0.12.3

12 years ago

0.12.2

12 years ago

0.12.1

12 years ago

0.11.2

12 years ago

0.12.0

12 years ago

0.11.1

12 years ago

0.11.0

12 years ago

0.10.0

12 years ago

0.9.2

12 years ago

0.9.1

12 years ago

0.9.0

12 years ago

0.8.5

12 years ago

0.8.4

12 years ago

0.8.3

12 years ago

0.8.2

12 years ago

0.8.1

12 years ago

0.8.0

12 years ago

0.7.1

12 years ago

0.7.0

12 years ago

0.6.2

12 years ago

0.6.1

12 years ago

0.6.0

12 years ago

0.5.8

12 years ago

0.4.16

12 years ago

0.4.15

12 years ago

0.4.14

12 years ago

0.4.13

12 years ago

0.5.7

12 years ago

0.4.12

12 years ago

0.5.6

12 years ago

0.4.11

12 years ago

0.4.10

12 years ago

0.5.5

12 years ago

0.5.4

12 years ago

0.5.3

12 years ago

0.5.2

12 years ago

0.4.7

12 years ago

0.5.1

12 years ago

0.5.0

12 years ago

0.4.8

12 years ago

0.4.9

12 years ago

0.4.6

13 years ago

0.4.5

13 years ago

0.4.4

13 years ago

0.4.3

13 years ago

0.4.2

13 years ago

0.4.1

13 years ago

0.4.0

13 years ago

0.3.2

13 years ago

0.3.1

13 years ago

0.3.0

13 years ago

0.2.6

13 years ago

0.2.5

13 years ago

0.2.4

13 years ago

0.2.3

13 years ago

0.2.2

13 years ago

0.2.1

13 years ago

0.0.11

13 years ago

0.0.10

13 years ago

0.0.9

13 years ago

0.0.8

13 years ago

0.0.7

13 years ago

0.0.6

13 years ago

0.0.5

13 years ago

0.0.4

13 years ago

0.0.3

13 years ago

0.0.2

13 years ago