I'm sure I am missing something obvious. My current app is here:
https://lawrenceks.maps.arcgis.com/apps/instant/interactivelegend/index.html?appid=69fec06502a6487e9a40583766ce5ec9
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:
https://lawrenceks.maps.arcgis.com/apps/instant/interactivelegend/index.html?appid=a5a1a3bd56844844a9966aa7a38b32d7
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!