Multiple Symbols For Single Feature Layer

55
2
Jump to solution
12-06-2021 09:17 AM
ararana
New Contributor

Can you have a single feature layer with more than one type of symbol depending on the object's data?

For example, if I have a single feature layer to show park benches but I have two or three different bench models. Can this be done? I've been looking around for an example of this in the demos but I haven't been able to find anything. 

0 Kudos
1 Solution

Accepted Solutions
AnneFitz
Esri Contributor

Hi @ararana - you can use a UniqueValueRenderer to accomplish this. Here's a sample that shows you how - Visualize features by type

Here's the API reference page for more information: https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.htm...

Hope this helps!

 

 

View solution in original post

0 Kudos
2 Replies
AnneFitz
Esri Contributor

Hi @ararana - you can use a UniqueValueRenderer to accomplish this. Here's a sample that shows you how - Visualize features by type

Here's the API reference page for more information: https://developers.arcgis.com/javascript/latest/api-reference/esri-renderers-UniqueValueRenderer.htm...

Hope this helps!

 

 

View solution in original post

0 Kudos
ararana
New Contributor

Thanks for the super quick reply! At a quick glance this looks exactly like what I was searching for. 

0 Kudos