I'm sure I am missing something obvious. My current app is here:
It works fine. All of the bus routes display initially, and clicking in the legend filters them.
I created the exact same app, but added in the new routes. It is here:
When you click the legend, the first layer you pick will disappear from the map, but nothing else works. Also, I noticed that in the working app, there is a button to Select All. That does not appear when I use the new data.
Differences that I've tested:
- Both layers are hosted feature services, but the new one is a copy coming from a distributed collaboration with our Portal. I tried publishing the layer directly to ArcGIS Online as a hosted layer and it made no difference.
- The new layer has a definition query on it. I removed it and republished the service, but found no change.
- The new layer has punctuation in the name. I removed those and republished to no effect.
- The new layer was originally symbolized on a text field, so I converted it to a number field and republished. Again, no change.
I'm always a little suspicious of linework that starts and ends in the same spot because we know lines don't want to self intersect, but both the old and new datasets have that situation. I also ran check geometry on the new layer to see if there were any issues. I haven't done a full topology check, but I suppose that's my next step.
Open to other ideas!
@AmyRoust I don't have access to the second (newly created) Interactive Legend, could you share it? I will take a look.
@BethRomero - sorry, I turned off sharing on that app. It's back to Public now. Appreciate your time!
Also, here is the item page for the service I'm using, if you want to test on your own:
https://lawrenceks.maps.arcgis.com/home/item.html?id=814063f5548042c19ca8fc6b469efa2b
I don't have a solution or explanation yet, but I do have a workaround. After adding the new layer to a web map, I removed the unique symbology and the redid it from scratch. Somehow, making any change to the symbology resolves the issue. All I can guess right now is that the web map or the Instant App doesn't like something about the symbology as-is when it comes across in the collaboration. I've got a ticket in with Esri tech support, but I'm really not sure whether we'll find a root cause or not. It was a pain to manually redo the colors on 20 bus routes, but hey, if it works, it works!