cartocss2leaflet
================

A node module for converting CartoCSS map styles to Leaflet styles.


Usage
-----

You can use it as a module or as a command line script. To do the latter, clone
this repo, `npm install -g` and invoke the script:

    cartocss2leaflet <file>


TODO
----

 * zoom (https://github.com/mapbox/carto/blob/master/lib/carto/tree/zoom.js#L112-L118)
 * variables
 * :: attachments
 * command line script


WON'T DO
--------

The plan is to support only those CartoCSS properties that map onto the
Leaflet's SVG path properties. As such, there is no plan to support the 
following properties:

 * `background-*`
 * `building-*`
 * `comp-op`
 * `point-*`
 * `raster-*`
 * `shield-*`
 * `text-*`


Contributing
------------

All code changes should be made in `src/index.js` and compiled using Babel into
the resulting `index.js`. Run `npm run watch` while editing to continuously
compile using Babel.


License
-------

MIT.

cartocss2leaflet
================

A node module for converting CartoCSS map styles to Leaflet styles.


Usage
-----

You can use it as a module or as a command line script. To do the latter, clone
this repo, `npm install -g` and invoke the script:

    cartocss2leaflet <file>


TODO
----

 * zoom (https://github.com/mapbox/carto/blob/master/lib/carto/tree/zoom.js#L112-L118)
 * variables
 * :: attachments
 * / instances
 * command line script


WON'T DO
--------

The plan is to support only those CartoCSS properties that map onto the
Leaflet's SVG path properties. As such, there is no plan to support the 
following properties:

 * `background-*`
 * `building-*`
 * `comp-op`
 * `point-*`
 * `raster-*`
 * `shield-*`
 * `text-*`


Contributing
------------

All code changes should be made in `src/index.js` and compiled using Babel into
the resulting `index.js`. Run `npm run watch` while editing to continuously
compile using Babel.


License
-------

MIT.

Add instances as a TODO
Add instances as a TODO
