I’m hoping to be modify my CartoCSS to reduce or expand the line-width of a style given some circumstance, i.e. to use the already assigned line-width in an expression to create a new line-width.
I haven’t been able to figure out if CartoCSS supports this. Does anyone know for certain one way or another?
For instance:
[keyA = 'valueA'] {
line-width: 1;
[keyB = 'valueB'] { // but not valueC og valueD!!
line-width: @line-width * 0.9;
}
}
No, you will need to repeat the zoom logic for valueB [zoom = 12] { line-width: @zoom-12-width * 0.9; }
etc.
You can put the scaling factor in a variable.