HOW TO

Change the background color of the map in an HTML viewer

Last Published: April 25, 2020

Summary

These directions comprise one method of changing the background color of the map within an HTML viewer. The background color of the overview map will also be set.

Alternatively, you can set the background color of the MapService itself by using the <BACKGROUND> ArcXML element within the map configuration file.

Procedure



  1. Locate the arcIMSparam.js file within your HTML Web site's folder. (In a typical default installation of ArcIMS, this file is located at C:\ArcIMS\Website\<name of the HTML Web site>.)

  2. Open the arcIMSparam.js file in a text editor such as Wordpad.
  3. Search for a variable named mapBackColor. Type in an RGB string for the value of this variable. For example:
    Code:
    mapBackColor="0,0,225"

  4. Save the arcIMSparam.js file.
  5. Open the Web site (a complete refresh of your browser may be necessary). The viewer should now reflect the change.

Article ID:000004844

Software:
  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic