Select to view content in your preferred language

Modify a custom indicator on Icon based on condition

306
1
05-02-2023 12:26 AM
RoslanSaidi
New Contributor II

Hi, I want to create a simple marker colour that overlap with map icon (Refer attachment for an example). Anyone can give me a reference? I tried to follow Visual variables | Overview | ArcGIS Maps SDK for JavaScript 4.26 | ArcGIS Developers, but it doesn't follow what I want. 

 

What I want to create based on condition are:

- Red (Expired)

- Yellow (To be expired)

- Success (Valid).

 

 

Thanks!

Tags (1)
0 Kudos
1 Reply
JamesIng
New Contributor III

The easiest way is to create three separate symbols to be used on those conditions with the red, yellow, and success and then use a unique value renderer based on the attribute value to display that symbol:

https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.htm...

James from www.landkind.com
0 Kudos