Hello!
Looking for suggestions on how to approach this!
I have a web map that displays available positions for 26 offices. The feature layer gets updated daily using an automated Python script. Not all the offices advertise jobs at the same time.
Since all the offices need to have a specific symbology, I am using a column with all the office names as the field for my symbology. However, this causes the legend to display all the office names regardless of whether they have a position or not.
My questions are:
Is it possible to configure the legend to only show the names of the offices that have positions?
Should I be using the ArcGIS API for Python to assign the specific symbology only to the offices that have positions?
Any suggestions are welcome! Hope this makes sense.
Solved! Go to Solution.
Hi @alondranorat,
Using custom expression for symbology would be the best approach while publishing the service from ArcGIS Pro. Being an existing service, you can overwrite it after configuring the custom expression.
You can refer this link for more details: Set custom expressions for symbology—ArcGIS Pro | Documentation
You can also prefer vbscript for the symbology. In ArcGIS Pro, VBScript for symbology works by returning a value that the renderer can use. If you only want to symbolize offices with open positions, you can make the expression return a category label (like "Open") for those, and Null or an empty string for others.
Regards,
Rana
Hi @alondranorat,
Using custom expression for symbology would be the best approach while publishing the service from ArcGIS Pro. Being an existing service, you can overwrite it after configuring the custom expression.
You can refer this link for more details: Set custom expressions for symbology—ArcGIS Pro | Documentation
You can also prefer vbscript for the symbology. In ArcGIS Pro, VBScript for symbology works by returning a value that the renderer can use. If you only want to symbolize offices with open positions, you can make the expression return a category label (like "Open") for those, and Null or an empty string for others.
Regards,
Rana