Nearby app and legend layout

610
4
Jump to solution
04-17-2023 12:52 PM
Labels (1)
HeatherWidlund
Occasional Contributor II

In my Nearby App, the legend opens horizontally and doesn't scroll far enough, so not all the features are visible. This is both on desktop and mobile. It's basically unusable. Is there a setting I'm missing?

iphone_legend.jpg

desktop_legend.PNG

0 Kudos
1 Solution

Accepted Solutions
KellyHutchins
Esri Frequent Contributor

Ok looks like the old legend config prop is hanging around for some reason. If you feel comfortable doing so you can remove it using the ArcGIS Assistant. I suggest making a copy of your app first and practicing on that copy before doing this in the production version. Here are the steps to edit your application JSON

 

1. Log-in to ArcGIS Assistant

2.  Find the app you want to edit then click it and choose "View Item JSON"

3.  In the JSON editing panel click the Data tab then Edit JSON

4. Find the "legendConfig" section and remove it from the JSON 

 

        "legendConfig": {
            "style": {
                "type": "card",
                "layout": "side-by-side"
            }
        },

 

5. Click Save the reload your app 

 

 

View solution in original post

0 Kudos
4 Replies
KellyHutchins
Esri Frequent Contributor
Heather we changed that default behavior a few releases ago. Can you try going into your app configuration then disable the legend, save the app, then reenable the legend and see if it switches to the vertical behavior.


0 Kudos
HeatherWidlund
Occasional Contributor II

Thanks for the quick response, Kelly. I have disabled and enabled many times now with no change to the behavior.

0 Kudos
KellyHutchins
Esri Frequent Contributor

Ok looks like the old legend config prop is hanging around for some reason. If you feel comfortable doing so you can remove it using the ArcGIS Assistant. I suggest making a copy of your app first and practicing on that copy before doing this in the production version. Here are the steps to edit your application JSON

 

1. Log-in to ArcGIS Assistant

2.  Find the app you want to edit then click it and choose "View Item JSON"

3.  In the JSON editing panel click the Data tab then Edit JSON

4. Find the "legendConfig" section and remove it from the JSON 

 

        "legendConfig": {
            "style": {
                "type": "card",
                "layout": "side-by-side"
            }
        },

 

5. Click Save the reload your app 

 

 

0 Kudos
HeatherWidlund
Occasional Contributor II

That worked, thank you!

0 Kudos