A Node.js map tile library for PostGIS with CartoCSS styling
npm install windshaftA 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.
!Playing with colors by @andrewxhill !Circumpolar Arctic Vegetation by @andrewxhill
!Bolivia deforestation by @saleiva !Traffic accidents by @rochoa
Requirements:
* Node 10.x (npm 6.x)
* PostgreSQL >= 10.0
* PostGIS >= 2.4
* CARTO Postgres Extension >= 0.24.1
* Redis >= 4
* libcairo2-dev, libpango1.0-dev, libjpeg8-dev and libgif-dev for server side canvas support
* C++11 to build internal dependencies. When there's no pre-built binaries for your OS/architecture distribution.
To fetch and build all node-based dependencies, run:
``shell`
$ npm install
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:
`shell`
$ mason install mapnik
Where is the latest released version of Mapnik. You can also use other alternatives:
Probably one of the more advanced uses of Windshaft library can be found at Windshaft-cartodb project.
`shell`
$ npm test
`shell`
$ npm run cover
Open ./coverage/lcov-report/index.html.
We provide docker images just for testing and continuous integration purposes:
* nodejs-xenial-pg1121
* nodejs-xenial-pg101
You can find instructions to install Docker, download, and update images here.
Run test in a docker image with a specific Node.js version:
`shell`
$ DOCKER_IMAGE=
Where:
* : the tag of required docker image, e.g. carto/nodejs-xenial-pg1121:latest
* : the Node.js version, e.g. 10.15.1
In case you need to debug:
`shell`
$ DOCKER_IMAGE=
#### 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.
* The issue tracker: Github.
* We love Pull Requests from everyone, see contributing to Open Source on GitHub.
* You'll need to sign a Contributor License Agreement (CLA) before submitting a Pull Request. Learn more here.
We follow SemVer` for versioning. For available versions, see the tags on this repository.
This project is licensed under the BSD 3-clause "New" or "Revised" License. See the LICENSE file for details.