I'm helping re-configure an Instant App that is being fed by a simple Web Map, neither of which I built. The Web Map contains 2 layers and 1 basemap (see first image). When the Web Map is opened, I'm able to see that the main layer (Assessment Districts) contains 5 unique values (see second image).
The issue here is that when the Web Map is added to the Instant App, the Instant App Legend and Layer List both show duplicates (see third image) for each of the 5 unique values that come from the main layer within the original Web Map.
The Instant App template used was Zone Lookup (which allows users to search for locations within a zone or region. Organize results returned in the search by using the group results by layer option).
Things I've tried:
-Creating a new Instant App and pulling in the original Web Map (same legend and layer list issue)
-Removing the original Web Map from the Instant App and then adding a different Web Map to see if the legend and layer lists still caused issues
-Combing through each of the Instant App configuration options to no avail
-Googling like crazy
Web Map Layers
Web Map's Main Layer Designations
Duplicate Designation Values in Legend and Layer List
Have you tried looking at the underlying JSON configuration in the ArcGIS Assistant https://assistant.esri-ps.com/content? It's a dangerous thing to go fiddling around in if you don't know what you are doing, but looking at it might give you a clue as to what is going on.
This is not something I am familiar with but I'll check it out. Would I be looking at the JSON for the WebMap or the InstantApp? And once I'm there, I'm guessing I'd look for instances in which the code repeats itself for the layer in questions, yeah? I don't plan to edit any of this but it would be helpful to show my supervisor a potential solution.
Thanks for your help!
I'd look at both, although as you said creating a new Instant App with the WebMap exhibits the same behaviour, I would start with the WebMap.
Are the app or map public? If so can you share the link I'd be happy to take a look.
Ok I think I found the issue. It looks like if you have a map image layer then there will be situations where the layers are duplicated. But as a workaround, I ran a quick test and it looks like you can remove the map image layer from the legend in the Map Viewer to remove the duplicates.
To do this select the main layer - in this example its called "AssessmentDistricts" then use the three dots to select "Show Properties" which will open the properties panel then you can unselect "Show in map legend".
Let me know if this workaround works for you.
Hi @KellyHutchins ,
Thanks for all the info. Unfortunately, I tried the show properties > show in map legend option. But that didn't change the duplicates within the Instant App. If this were re-hosted as a feature layer instead of a map image layer, would I have better luck? Still trying to sort this out.
Thanks again 🙂