Nevertheless! Party Metaphorically

    tangram-cartocss

    0.9.11 • Public • Published

    [DEPRECATED] Tangram-cartocss Build Status No Maintenance Intended

    This is no longer supported.

    Installation & usage

    me$ npm i tangram-cartocss
    // or
    me$ yarn add tangram-cartocss
    import CCSS from 'tangram-cartocss';

    API

    CCSS object

    .carto2Draw

    const Carto = require('carto');
    const CartoCSSRenderer = new Carto.RendererJS({
        reference: tangramReference,
        strict: true
    });
    const css = `
      #layer {
        line-dasharray: 2,3
      }`;
    const layers = CartoCSSRenderer.render(css).getLayers();
    console.log('\nlayerToYAML:\n', JSON.stringify(layerToYAML(layers[1], 1), null, 4));

    Limitations

    Currently, this doesn't support texts, although Tangram supports it.

    There are other limitations, but they are imposed by Tangram and tangram-reference.

    Install

    npm i tangram-cartocss

    DownloadsWeekly Downloads

    96

    Version

    0.9.11

    License

    BSD-3-Clause

    Last publish

    Collaborators

    • felixpalmer
    • josmorsot
    • aaranadev
    • bbecquet
    • zbigg
    • eamadorp
    • juanra-carto
    • cartodb
    • alasarr
    • victor.velarde
    • shylpx
    • jaragon
    • alonsogarciapablo
    • iagolast