English

How To: Change the default initial map tool in the HTML Viewer

Summary

The default initial map tool in the HTML Viewer is the Zoom In tool. Follow these steps to change the default setting from Zoom In to another initial map tool.

Procedure

1. Open HTML Viewer ArcIMSParam.js file from any development or text editor.

2. Find the following line of code:

Code:
var useReverseGeocode = false;

3. Immediately follow with this line of code:

Code:
var defaultMapTool = "identify";


Note:
The string "identify" can be changed to any of the map tool names shown below:

"zoomin"
"zoomout"
"pan"
"identify"
"identifyall"
"measure"
"selectbox"
"selectshape"

Continue with the following steps.

4. Find the following line of code:

Code:
if (aimsClickPresent) clickFunction("zoomin");

5. Replace the line of code with the following line of code:

Code:
if (aimsClickPresent) clickFunction(defaultMapTool);

6. Save the file. Clear the browser's cache
<a href='http://support.esri.com/en/knowledgebase/techarticles/detail/14652' target='_blank'>How To: Clear your browser's cache</a> and reload the HTML Viewer.