Fairly new to the Flex platform - so forgive me if this sounds weird ..
When adding a layout to the print - obviously you want a legend of items .. however, the box to check to only show items in the current extent is grayed out .. I can't find any answer as to where this option can be changed ..
Any help would be appreciated ..
Thanks in advance.
I assume you're referring to when you're creating a new Print Template MXD. In this case, you will need a layer in your ArcMap Table of Contents in order to select that option in your MXD Legend Component.
One work-around for this, is to publish your Template MXD with a "Dummy" layer, and just let it be a blank feature class with no symbology and no name. That might work out ok, and it shouldn't show up when the Flexviewer User uses your Print GP Service with that particular Template MXD.
added a blank layer as suggested - checked the box to only show classes that are visible in the current map extent - ran the tool to export webmap - shared as geoprocessing service - tested ...
still shows everything turned on and not just current extent items in the legend ..
any other suggestions?
I am also facing the same problem to get Legends for only visible map extent.
I have created the mxd template in which the legend properties have been set as "Only show classes that are visible in the current map extent". However "Export Web map task" is not honouring this setting.
ArcGIS for Server versions 10.3.1 and onward.