tangram-reference

2.1.2 • Public • Published

[DEPRECATED] Tangram-reference Build Status No Maintenance Intended

This is no longer supported.

Tangram-reference is a JSON specification of the CartoCSS vendor style options that Torque provides. Inspired by mapnik-reference, it is useful for building parsers, tests, compilers, and syntax highlighting/checking for languages.

Meaning

The structure of the file is as such:

  • version: the version of Torque targeted. Same as the containing directory.
  • style: properties of the Style XML element
  • layer: properties of the Layer XML element
  • symbolizers/*: properties that apply to all symbolizers
  • colors: named colors supported by Torque

Using

This is a valid npm module and therefore can easily be used with node.js.

npm install tangram-reference

The file can then be parsed with any of the many json parsers.

Testing

npm test

Readme

Keywords

none

Package Sidebar

Install

npm i tangram-reference

Weekly Downloads

7

Version

2.1.2

License

none

Last publish

Collaborators

  • cartodb