Select to view content in your preferred language

Overview map not populating with Export Web Map / Print Service

3171
6
Jump to solution
08-14-2013 05:23 PM
LanceGoens
Occasional Contributor
According to the documentation here, I should be able to get an overview map to work in my printing gp service. I have created a very simple template / mxd. It has two data frames, the first is called Layers and is intended to be the main map of the template, the second is called Overview and is obviously intended to be the overview map. According to the documentation, a relationship must exist between the two data frames, and the main map must be the active data frame. After placing these two data frames in my template, I right clicked on Layers and selected Activate. Then I went into the properties of Overview, on the Data Frame tab and set the Extent to "Other Data Frame" and Derive extent from another data frame's extent: to Layers. Margin was set to 200% (have no idea what this should be set to) and Zoom to features... set to None. When I placed this mxd into the templates directory and restarted the gp printing service, the main map populates fine but the overview map is blank. What am I missing? The size of Overview is pretty small, is my margin size causing problems?  Did my steps above not create a relationship between the two data frames? Here are the properties of Overview:
[ATTACH=CONFIG]26717[/ATTACH]
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
TanuHoque
Esri Regular Contributor
Lance,
I'm not quite sure from your post whether you added any layer in your "Overview" dataframe or not. The Printing Service only adds layers to the active dataframe and leaves other dataframes untouched. So, unless you have layers in those dataframes, they will appear blank in the output.

Note: make sure ArcGIS Server Account User has access to those layers.

Thanks

View solution in original post

6 Replies
TanuHoque
Esri Regular Contributor
Lance,
I'm not quite sure from your post whether you added any layer in your "Overview" dataframe or not. The Printing Service only adds layers to the active dataframe and leaves other dataframes untouched. So, unless you have layers in those dataframes, they will appear blank in the output.

Note: make sure ArcGIS Server Account User has access to those layers.

Thanks
AndrewSchumpert
Deactivated User
Lance,

Have you had any luck with this?  I also cannot make sense of the documentation for including multiple data frames in the layout (http://resources.arcgis.com/en/help/main/10.1/index.html#/Using_your_own_layouts_for_printing/015400... ), and I'm having the same issue as you.


Thanks,
Andrew
0 Kudos
AndrewSchumpert
Deactivated User
Ah.. I was under a wrong assumption about the content for the Overview.  Having the extent derived from the active data frame works fine.  I just needed to have an existing basemap in my overview frame for there to be content to pan/zoom to.
LanceGoens
Occasional Contributor
Sorry for the delay in getting back here. I finally got around to trying this and yes, layers needed to be added to the Overview data frame. Just remember after doing that to re-activate the "Layers" / your main map data frame. Thanks!
LanceGoens
Occasional Contributor
The Printing Service only adds layers to the active dataframe and leaves other dataframes untouched. So, unless you have layers in those dataframes, they will appear blank in the output.


Followup question for mahoque : Does this mean that the overview map layers cannot be dynamic? The "Layers" data frame in my example has layers chosen by end users in an Ad Hoc type scenario. Ideally, I'd like the same layers they selected to be the ones visible in the Overview map. It seems as though I have to select which layers are always used in the overview and they are not driven at all (other than setting the extent) by the layers in the main map that the user has selected. Can you confirm that is how this works. If not, an example of dynamically adding layers to the "Overview" data frame would be appreciated. Thanks!
0 Kudos
TanuHoque
Esri Regular Contributor
Lance,
Does this mean that the overview map layers cannot be dynamic?

That is true with Out of the Box PrintingTools service or any custom printing service based on ExportWebMap tool. You must have layers in the overview dataframe in your template-mxd.

if you want to add layers in the overview dataframe dynamically based on some selection that your end users make, then you need to use arcpy based printing solution.
here is high level steps how you can do this:
- in your arcpy code, call arcpy.mapping.ConvertWebMapToMapDocument(). The input to this function is identical to the input of out of the box printing service
- the result of this function contains a mapDocument object
- now that you have the mapDocument object, you can find your overview dataframe and add/remove new layers

here is the help on the function http://resources.arcgis.com/en/help/main/10.2/index.html#//00s30000006n000000

-Tanu
0 Kudos