Select to view content in your preferred language

Legend widget displays no data in mobile view

639
4
03-14-2024 12:59 PM
Labels (1)
Webturtles
Occasional Contributor

Hi
I have an issue with the legend widget when switching between desktop -> mobile layouts.  The desktop layout uses a grid with a main map pane, bookmark pane along the bottom and a fixed right-hand pane for legend, layers and queries.
Webturtles_0-1710445673210.png

If I change the layout to tablet or mobile view, the map now appears in an extra tab along with the bookmarks.  This is expected behaviour, however the linkage between map and legend is lost, so no legend is shown.

Webturtles_1-1710445884999.png

If the app is returned to desktop view the legend is re-united with the map

This behaviour can be triggered in the editor in live view or the published app.

Is there a way to keep the legend populated in all 3 layouts?

Thanks

 

0 Kudos
4 Replies
JeffreyThompson2
MVP Regular Contributor

Try this. Send the Legend Widget to the Pending List when switching to the mobile view and also in the mobile view add a second Legend Widget that connects to the Map Widget used in the mobile view.

GIS Developer
City of Arlington, Texas
0 Kudos
Webturtles
Occasional Contributor

That unfortunately made no difference.  I tried to use it partnered with both the original map widget and with a second map widget in just the mobile view. Do I maybe need to be looking at triggers?

0 Kudos
TonghuiMing
Esri Regular Contributor

@Webturtles The reason is that your map is out of view (another tab of the grid layout) when reviewing the Legend widget, so it cannot get the map info successfully. There is a support ticket for that - BUG-000156708.

Currently, the workaround is to ensure that your legend/MapLayers widgets, etc. are in the same view as the map.

0 Kudos
Webturtles
Occasional Contributor

Thanks for the update, understand, albeit a tad annoying!  Is there a recommended way to manage mobile real estate with a map and legend in view?  Does this out of view issue apply to any other map dependent widgets?

0 Kudos