PROBLEM

Layout extent remains unchanged from default despite specifying correct ENVELOPE

Last Published: April 25, 2020

Description

In ArcIMS 9.x, the map in a layout image does not reflect the zooms or pans performed by the user unless the DATAFRAME is specified. Instead, the layout remains as saved in the MXD file.

Cause

The GET_LAYOUT request must identify the DATAFRAME for the correct extent to be displayed in the layout image.

Solution or Workaround

Identify the DATAFRAME in the GET_LAYOUT request. See below for examples of both the incorrect and correct use of the GET_LAYOUT request at ArcIMS 9.x.

· Incorrect method: DATAFRAME not identified - the layout remains at the extent saved in the MXD.

Code:
<ARCXML version="1.1">
<REQUEST>
<GET_LAYOUT>
<PROPERTIES>
<ENVELOPE minx="0" miny="0" maxx="11" maxy="8.5" />
</PROPERTIES>
<DATAFRAME>
<ENVELOPE minx="482527.897" miny="3767353.7627" maxx="483016.088" maxy="3767716.00465848" />
</DATAFRAME>
</GET_LAYOUT>
</REQUEST>
</ARCXML>


· Correct method: DATAFRAME identified - the layout is zoomed-in to the extent of the ENVELOPE.

Code:
<ARCXML version="1.1">
<REQUEST>
<GET_LAYOUT>
<PROPERTIES>
<ENVELOPE minx="0" miny="0" maxx="11" maxy="8.5" />
</PROPERTIES>
<DATAFRAME id="Layers">
<ENVELOPE minx="482527.897" miny="3767353.7627" maxx="483016.088" maxy="3767716.00465848" />
</DATAFRAME>
</GET_LAYOUT>
</REQUEST>
</ARCXML>

Article ID:000007228

Software:
  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic