Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I set symbol color by diferent value? #48

Open
Aaronsi opened this issue Mar 22, 2023 · 0 comments
Open

How can I set symbol color by diferent value? #48

Aaronsi opened this issue Mar 22, 2023 · 0 comments

Comments

@Aaronsi
Copy link

Aaronsi commented Mar 22, 2023

my code is:
var simpleJson = {
"type": "simple",
"label": "",
"description": "",
"symbol": {
"color": [210,105,30,191],
"size": 10,
"angle": 0,
"xoffset": 0,
"yoffset": 0,
"type": "esriSLS" // esriSMS, esriSLS
}
"visualVariables": [{
"type": "color",
"field": "status",
"stops": [
{ "value": 1, "color": [52,176,0,191]},
{ "value": 2, "color":[254,203,0,191]},
{ "value": 3, "color":[223,1,0,191]}
]
}]
};
geoJsonLayer.renderer = new SimpleRenderer(simpleJson);

The problem is that it doesn't work. Can you give me some suggestion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant