mapbox/tilemill — Issue #986: Multiple-field styling? Live updates?
Author: mroswell
Created: 2011-12-02 20:28:27+00:00
State: open

Is there styling in Carto across multiple data fields?
For instance:
If AgCommittee='Y' and Party="R" color Red
If AgCommittee='Y' and Part='D' color Blue
If Ag Committee is Null color white

I would imagine a syntax such as:
#Congress [AgCommittee='Y' AND Party = 'R'] {
polygon-fill: @red;
}

Or, do I need to pre-process all this in a GIS (by adding a color-by field with entries such as 'AgDem' and AgRepub'?

Related to this, if I edit a file in a GIS, for instance QGIS, is there a way to have the file updates be reflected in the currently opened TileMill.