Printing - Legend to only Show Extent items

7146
7
02-24-2014 03:57 AM
JasonMitchell
New Contributor
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.
Tags (2)
0 Kudos
7 Replies
GISDev1
Occasional Contributor III
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.
0 Kudos
JasonMitchell
New Contributor
thanks GISDev01 - i will try this out and see if that helps the issue .. hopefully it does and then i can just copy the dummy layer to each of the layout templates i will be publishing for our users ..

will follow up with results and/or other questions if needed ..
0 Kudos
JasonMitchell
New Contributor
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?
0 Kudos
GabrielYarlequé
Occasional Contributor

hi, were you able to find a solution for this issue? thanks

0 Kudos
GISDev1
Occasional Contributor III
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?


Ok, are you trying to print in the flexviewer using local ArcGIS Server REST service data from your own services or external REST services?

This gets a little complicated, since Esri actually mentions in their Export Web Map Tutorial (you've probably found this already: http://resources.arcgis.com/en/help/main/10.1/index.html#//0057000000mq000000) that you can do the data source switch from your local ArcGIS Server REST services to your ACTUAL data source (File GeoDatabase, etc.).

I don't think the "Show Only in Map Extent" is going to work properly if you are consuming External REST services, but you can actually test this in ArcMap. Just consume the same services as your flexviewer by adding the ArcGIS Server Connection in ArcMap, and then try printing from ArcMap with that option checked in the Legend and see what happens.
0 Kudos
dineshpatil2
New Contributor III

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.

0 Kudos
Rafaelde_Oliveira_Casagrande
Esri Contributor

Hello folks,

Has anyone found a workaround for this problem? I've been using the Print Widget from WebApp Builder (Enterprise 10.7.1).

Thanks,

Rafael

0 Kudos