Still a problem in 2023. Issue is visible within Experience Builder using the Legend Widget. Similar to ParAman the Map Viewer legend shows up fine, but the legend in EP shows duplicates where symbology was grouped.
Still a problem. Legend has duplicate rows for grouped values using Map Viewer (Beta), but it's correct displayed in Map Viewer.
Using the Map Viewer (Beta) map in a webapp built on ArcGIS JS API (4.22).
Stuck with ArcGIS Enterprise 10.8.1 at the moment, later releases fixes this perhaps, but the bug was reported in a decade ago, not too hopeful.
Done 🙂 In May 😞#NIM067830 When using symbology of unique values, getting a duplicate entry in the legend service of the REST endpoint
Richard, I think you're right. Perhaps we should be reporting this to the core ArcGIS Server or REST team, since it's nothing to do with the JS API.I'm not on maintenance so I can't log a bug report - can someone else do it?Cheers,Steve
it is not a bug with the legend widget, it has to do with how the rest service is defined from your layer symbology setup in ArcMap
Hi Guys,I am coming across the same problem. In fact, it is not a bug with the legend widget, it has to do with how the rest service is defined from your layer symbology setup in ArcMap. I am building my own custom TOC and this had me stumped for a while. It happens in two instances that I am aware of:- using "Unique values" in ArcMap, selecting a few categories and grouping them manually- using "Unique values, many fields" in ArcMap (example in the attached esri_001.jpg)When you check the rest service information, you will see some 17 entries under "Unique Value Infos: ". Which is essentially re-splitting your groups and undoing all your hard work! (abbreviated screenshot at esri_002.jpg)So, you can workaround by creating a new column, and manually creating unique categories, but since our data is held in someone else's database, this is not an option for us.Is there some other approach to this? And/or will ESRI be looking at why this happens in Rest and if it can be fixed?Thanks,Richard.
Hi Kelly,Your legend works fine for me, so I'm not sure what the problem is. Once our web server is outwardly facing I'll get you to try it and see if we can reproduce the problem.Cheers,Steve
Do you have a test service that shows the problem?
Any response from ESRI?What's the best way to submit this as a bug report, given that I'm an EDN customer so don't have access to the full tech support?Thanks,Steve
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.