windshaft

7.0.2 • Public • Published

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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
7.0.22latest

Version History

VersionDownloads (Last 7 Days)Published
7.0.22
7.0.10
7.0.00
6.0.03
5.6.40
5.6.30
5.6.20
5.6.10
5.6.00
5.5.10
5.5.00
5.4.06
5.3.00
5.2.10
5.2.00
5.1.10
5.1.00
5.0.01
4.13.50
4.13.40
4.13.30
4.13.10
4.13.00
4.12.30
4.12.20
4.12.10
4.12.01
4.11.50
4.11.40
4.11.33
4.11.27
4.11.17
4.11.00
4.10.00
4.9.00
4.8.30
4.8.20
4.8.11
4.8.00
4.7.30
4.7.26
4.7.10
4.7.00
4.6.00
4.5.70
4.5.61
4.5.50
4.5.40
4.5.30
4.5.20
4.5.00
4.4.00
4.3.30
4.3.20
4.3.10
4.3.00
4.2.00
4.1.10
4.1.00
4.0.10
4.0.00
3.3.30
3.3.20
3.3.15
3.3.00
3.2.20
3.2.10
3.2.00
3.1.20
3.1.10
3.1.00
3.0.10
3.0.00
2.8.00
2.7.00
2.6.50
2.6.40
2.6.30
2.6.20
2.6.10
2.6.00
2.5.00
2.4.20
2.4.10
2.4.00
2.3.01
2.2.00
2.1.00
2.0.10
2.0.00
1.19.00
1.18.00
1.17.30
1.17.20
1.17.10
1.17.00
1.16.10
1.16.00
1.15.00
1.14.00
1.13.20
1.13.10
1.13.00
1.12.00
1.11.10
1.11.00
1.10.10
1.10.00
1.9.00
1.8.30
1.8.20
1.8.10
1.8.00
1.7.00
1.6.10
1.6.00
1.5.00
1.4.00
1.3.00
1.2.00
1.1.10
1.1.00
1.0.10
1.0.00
0.51.00
0.50.00
0.49.00
0.48.00
0.47.00
0.46.10
0.46.00
0.45.00
0.44.10
0.44.00
0.43.00
0.42.20
0.42.10
0.42.00
0.41.00
0.40.00
0.39.00
0.38.20
0.38.00
0.37.50
0.37.40
0.37.30
0.37.20
0.37.10
0.37.00
0.36.00
0.35.10
0.19.40
0.19.30
0.19.20
0.18.20
0.18.10
0.18.00
0.17.10
0.17.00
0.16.00
0.15.10
0.15.00
0.14.50
0.14.40
0.14.30
0.14.20
0.14.10
0.13.70
0.13.60
0.13.50
0.13.40
0.13.30
0.13.20
0.13.10
0.13.00
0.12.100
0.12.90
0.12.80
0.12.70
0.12.60
0.12.50
0.12.40
0.12.30
0.12.20
0.12.10
0.11.20
0.12.00
0.11.10
0.11.00
0.10.00
0.9.20
0.9.10
0.9.00
0.8.50
0.8.40
0.8.30
0.8.20
0.8.10
0.8.00
0.7.10
0.7.00
0.6.20
0.6.10
0.6.00
0.5.80
0.4.160
0.4.151
0.4.140
0.4.131
0.5.70
0.4.120
0.5.60
0.4.110
0.4.100
0.5.50
0.5.40
0.5.30
0.5.20
0.4.70
0.5.10
0.5.00
0.4.80
0.4.90
0.4.60
0.4.51
0.4.40
0.4.30
0.4.20
0.4.10
0.4.00
0.3.20
0.3.10
0.3.00
0.2.60
0.2.50
0.2.40
0.2.30
0.2.20
0.2.10
0.0.110
0.0.100
0.0.90
0.0.80
0.0.70
0.0.60
0.0.50
0.0.40
0.0.31
0.0.20

Package Sidebar

Install

npm i windshaft

Weekly Downloads

48

Version

7.0.2

License

BSD-3-Clause

Unpacked Size

148 kB

Total Files

50

Last publish

Collaborators

  • jmtorrescartodb
  • jmgaya
  • aalmonacid
  • donmccurdy
  • moicalcob
  • m.deividas
  • vmilan
  • felixpalmer
  • josmorsot
  • aaranadev
  • zbigg
  • juanra-carto
  • cartodb
  • shylpx
  • jaragon
  • jgoizueta