Can a map printed via the print widget show only features within the map extent in the legend? Am I missing a setting, toggle, or something?
1. Cannot exclude specific layers from the legend in the map view because sometimes they will need to be in the legend.
2. Some features are grouped, and I cannot ungroup them since they are being added to the map through REST endpoints, and the current settings do not allow it.
For example, say there is a group of water wells, and within that group there are 8 different types, but the map extent only shows 3. I would like the other 5 left off.
I know its possible by being deliberate in what layers you have turned on and off, but this is being used by non-gis users and I would like to make it as simple as possible for them.
I tried this on one of my apps and looked at the adv settings on the user side and on the exB side and also could not see any option to make to show only visible features in the print extent.
Hi @John_Hall ,
Are you using the default AGOL print service? The legend in the printout should only include features that are visible within the map's extent by default.
Would you mind sharing your app and data with me? My username is she10946.
Thanks,
Shengdi
Everything is shared. I appreciate the help,
Hi, I tested your app and what you’re seeing is expected behavior.
Before the February 2026 AGOL release, the Print API did not support dynamic legends, so all features were always displayed in the print output.
Dynamic legend support was added recently. However, because this app was created before that release, the print widget still uses the previous settings and behavior to avoid introducing unexpected changes.
If you’d like to use the dynamic legend, you can simply remove and re-select the print service in the print widget to update the template settings. After doing this, the print output will include only the features that are visible in the legend by default. If you prefer to include all features in the print legend, you can enable "Always show all features" in the print template settings.
Please let me know if you have other questions.
Thanks,
Shengdi
As @ShengdiZhang said, it should work. We are planning to roll out some enhancement in upcoming enterprise release to control that from Map Viewer and ExB side.
Until then you can set a flag in the layout template to only display legend patches for visible features. You need to that in ArcGIS Pro while authoring the template.
please see this help for more info: https://pro.arcgis.com/en/pro-app/latest/help/layouts/work-with-legend-items.htm#ESRI_SECTION1_2A684...