CartoDB / turbo-carto

CartoCSS preprocessor
BSD 3-Clause "New" or "Revised" License
28 stars 7 forks source link

Using variables within ramp functions does not work #58

Open ramiroaznar opened 8 years ago

ramiroaznar commented 8 years ago
\* Metro Lines Colors *\
@l1: #01bff5;
@l10: #014ea5;
@l11: #01836b;
@l12: #849a01;
@l2: #fe1225;
@l3: #fed201; 
@l4: #a75608; 
@l5: #34c83a; 
@l6: #949492; 
@l7: #fe862d; 
@l8: #fe82b0; 
@l9: #b91a8d; 
@ml1: #014ea5;
@ml2: #b91a8d;
@ml3: #fe1225;
@lr: #000000;

\* Metro Lines Style *\
#layer {
  line-width: 1;
  line-color: ramp([name], (@l1, @l2, @l3 ... @lr), category(16));
}

cc @makella @piensaenpixel