I have uploaded a shapefile with buildings with a field names [height] and [color], values stored are for height 1 to 4 and for color 1 to 10.I want to color based on that colors, code starts declaring a set of colors, to easily change it in the project cartocss, Also want to link building-height with field attributes.
@1: #FB000D;@2: #14D600;@3: #1730B7;...#EV_areas [Type='Store']{::roof { [color = 1] { building-fill: @1;} [color = 2] { building-fill: @2;} [color = 3] { building-fill: @3;} [color = 4] { building-fill: @4;} [color = 5 ] { building-fill: @5;} [color = 6] { building-fill: @6;} [color = 7] { building-fill: @7;} [color = 8] { building-fill: @8;} [color = 9] { building-fill: @9;} [color = 10] { building-fill: @10;} building-height: [height]; building-fill-opacity: 0.6; line-width: 0.25; line-color: transparent; } }If I write the same as polygon-fill but don't change color based on that field attribute.
The result is a grey (default building color property) and plain layer.What's wrong with building-fill and field selectors for color?
أكثر...
@1: #FB000D;@2: #14D600;@3: #1730B7;...#EV_areas [Type='Store']{::roof { [color = 1] { building-fill: @1;} [color = 2] { building-fill: @2;} [color = 3] { building-fill: @3;} [color = 4] { building-fill: @4;} [color = 5 ] { building-fill: @5;} [color = 6] { building-fill: @6;} [color = 7] { building-fill: @7;} [color = 8] { building-fill: @8;} [color = 9] { building-fill: @9;} [color = 10] { building-fill: @10;} building-height: [height]; building-fill-opacity: 0.6; line-width: 0.25; line-color: transparent; } }If I write the same as polygon-fill but don't change color based on that field attribute.
The result is a grey (default building color property) and plain layer.What's wrong with building-fill and field selectors for color?
أكثر...