1.0.0 • Published 8 years ago
torque-reference v1.0.0
torque-reference
Torque-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 theStyleXML elementlayer: properties of theLayerXML elementsymbolizers/*: properties that apply to all symbolizerscolors: named colors supported by Torque
Using
This is a valid npm module and therefore can easily be used with node.js.
npm install torque-referenceThe file can then be parsed with any of the many json parsers.
Testing
npm test1.0.0
8 years ago