I am trying to render a large dataset of points or polygons, and colour them directly based on hex or RGB values that exist directly in the attributes of each feature.
I do not want to use a UniqueValueRenderer to manually define stops, etc. I just want to send the RGB value from the attributes directly into the renderer for that point/polygon. This is very simple to do with Mapbox, but seemingly not simple with the ArcGIS Javascript API?
My very simple renderer - I just want color to directly use the HEX in the attributes of each feature.
renderer: {
type: "simple",
symbol: {
type: "simple-fill",
color: <make-me-attribute-driven>,
outline: null
},
}
Note: I can do this manually by using a GraphicsLayer and creating each graphic individually where I define it's colour etc, however I want to take advantage of Clustering and some of the other FeatureLayer capabilities not available to GraphicsLayers.
Is this actually possible? All the examples use UniqueValueRenderer to colour based on a defined number of stops, which is not what I want.