Help visualizing data in web scene

77
2
12-01-2021 12:22 PM
AnthonyDAlessio
New Contributor

Very much a newbie with ArcGIS in general, but I've been able to plow through most of what I've been trying to do, but what I thought was going to be the easiest portion has proven to be the most difficult.

The non-profit I work for would like to show all the sites in the world where specific treatments are being provided.  There are 25 or so treatment types split across  9 "body systems" (e.g. musculoskeletal, Neurological, etc.)

I thought 25 would be too many colors to try and differentiate between so my plan was to assign a shape to each body system then unique colors within those shapes.

From what I can tell you can assign colors to simple-markers but there are not enough of those to have unique shapes for each body system.  I've gone through all the other options  and the only thing I've been able to come up with is using WebStyleSymbols and trying to use VisualVariables to change colors, this would be perfect but that only seems to work on numbers, not strings.  

I then tried to use webStyleSymbol.fetchSymbol() which is supposed to provide me a PointSymbol3d that I can change the color of, but I haven't been able to find a good reference for exactly how to use this.  

This is the only example I've seen but they don't give the rest of the code associated with what I'm trying to do.

https://developers.arcgis.com/javascript/latest/visualization/3d-visualization/visualizing-points-3d...

So any advice on how to show 1300 sites world wide that fall into 9 categories of 25 different types ?

2 Replies
JohnGrayson
Esri Regular Contributor

Check out the UniqueValueRenderer; you should be able to configure the 25 values as needed by creating unique symbols that use different shape for the category and then colors for the type:

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

0 Kudos
BjornSvensson
Esri Regular Contributor

To create the 9x25 different symbols, CIM symbols can be handy to create say 9 different shapes and/or colors with for example 25 different numbers or letters inside the symbol. See the https://developers.arcgis.com/javascript/latest/sample-code/cim-symbols/ sample which creates a different symbol (same shape but different number) with each click on the map.

0 Kudos