Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cartodb/tangram-reference

⛔️ DEPRECATED Reference for Tangram Styling Options
https://github.com/cartodb/tangram-reference

archived deprecated obsolete

Last synced: 8 days ago
JSON representation

⛔️ DEPRECATED Reference for Tangram Styling Options

Awesome Lists containing this project

README

        

# [DEPRECATED] Tangram-reference [![Build Status](https://travis-ci.org/CartoDB/tangram-reference.svg?branch=unsupported-properties)](https://travis-ci.org/CartoDB/tangram-reference) ![No Maintenance Intended](https://img.shields.io/badge/No%20Maintenance%20Intended-%E2%9C%95-red.svg)

This is no longer supported.

Tangram-reference is a JSON specification of the CartoCSS vendor style options that [Torque](https://github.com/CartoDB/torque) provides. Inspired by [mapnik-reference](https://github.com/mapnik/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](http://npmjs.org/) module and therefore can easily be used with
[node.js](http://nodejs.org/).

npm install tangram-reference

The file can then be parsed with any of the many [json parsers](http://www.json.org/).

## Testing

```
npm test
```