When trying to display a geojson layer in TileMill, is it possible to access the 'properties' of each feature?
My geojson looks like this:
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [2.22614, 48.8765]
},
"properties": {
"type": "stop",
"name": "SOME_NAME",
"color": "#ff0000"
}
and I would like to display the name in properties/name, using the color in properties/color.
Is it possible? Properties are clearly accessible since one can write this and it works:
#id[type='stop'] {
/* various css rules */
}
But is it possible to use properties in the css rules themselves? This for instance does not work:
#id[type='stop'] {
marker-line-color: [color];
}
(or any variation with or without quotes inside or outside brackets for 'color').
If it's not possible, in what other format should I transform the geojson in order to access properties of each element from the css?