PROBLEM
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.
The GET_LAYOUT request must identify the DATAFRAME for the correct extent to be displayed in the layout image.
· 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>
Get help from ArcGIS experts
Download the Esri Support App