how can I set a CSS style on vector elements in cartodb?

23 views
Skip to first unread message

Ali Zeynali

unread,
Jul 3, 2018, 2:50:00 AM7/3/18
to cartodb
in Nutiteq there was a class `CartoCSSParser` :
   A CartoCSS style parser. Geometry and marker styles can be parsed from simple human-readable format.
But I can not find this class or any similar class do the same job.
is there any?
or how can I set a CSS style on vector elements in cartodb?

Ramiro Aznar Ballarin

unread,
Jul 3, 2018, 4:04:27 AM7/3/18
to cartodb
Hi Ali,

You can learn how to style CARTO layers using tLearn Guides [1] and CARTO documentation [2]. But basically, CARTO is a styling cascade language. You can apply multiple symbolizers and properties to the same layer using conditional blocks and/or TurboCARTO ramps [3]:

        #layer {
          marker-width: 3;
          marker-fill: ramp([field], cartocolor(Sunset), quantiles());
          marker-line-width: 0;
        }

Hope this helps.



--

---
You received this message because you are subscribed to the Google Groups "cartodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cartodb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages