kosmtik-magnacarto

0.1.1 • Public • Published

kosmtik-magnacarto

Support for the Go implementation of CartoCSS (Magnacarto) for Kosmtik. This implementation is available as a native extension for Node.js. Currently the native extension is available for Linux and MacOS X systems only and is still considered experimental.

Magnacarto is much faster than Carto, but may not support the full range of features. However, the feature set is very close to the JavaScript reference implementation.

Benchmark

Due to the internal use of Go vs. JavaScript Magnacarto is much faster in parsing complex stylesheets. For openstreetmap-carto the difference is as large as 1.24s for Magnacarto vs. 10.08s for Carto (January 2016).

Install

While in your Kosmtik root, run:

node index.js plugins --install kosmtik-magnacarto

Usage

Specify the alternate renderer with the --renderer command line option. E.g.:

node index.js serve --renderer magnacarto ...

Package Sidebar

Install

npm i kosmtik-magnacarto

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • nebulon42
  • ybon