/**********************************************************
*	parameters.js
*
**********************************************************/

/**************************************************
*	Connection parameters
***************************************************/
// If the protocol is TCP, host is the name of the machine 
// where the map service is located. If the protocol is HTTP, host is the
// web server name.
var hostName = "localhost";

// Name of the service to be displayed when the viewer is initially loaded. 
// Only works with image services. Do not specify a feature service. 
// If serviceName is set to "" (empty string) the Load Service dialog 
// will be displayed in the toolbar frame.
//var serviceName = "inetmockup";

// http or tcp; http is default
var protocol = "tcp";

// used by tcp only
var port = 5300;

/**************************************************
*	Parameters for overview map and layer list
***************************************************/

// Display/hide the overview map.
var hasOVMap = false;
// Display/hide the layer list. If set to 'false', then overview map will also NOT be displayed.
var hasLayerList = true;

/**************************************************
*	Overview connection parameters
***************************************************/

// If main service is loaded interactively, overview service will use the same parameters
var ovHostName = "localhost";
//var ovServiceName = "inetmockup";

// http or tcp; http is default
var ovProtocol = "tcp"; 

// used by tcp only
var ovPort = 5300; 

/**************************************************
*	Map Extent
***************************************************/

// If extent coords are all set to zero, coords will be 
// dynamically set by mapservice envelope.
// If coords are set to a non-zero value, both starting and full extent must be set 
// or full extent will default to starting defined by the starting extent coords

// starting extent coords
var minX = 0;
var minY = 0;
var maxX = 0;
var maxY = 0;

// full extent coords
var fullMinX = 0;
var fullMinY = 0;
var fullMaxX = 0;
var fullMaxY = 0;

/**************************************************
*	Toolbar buttons
***************************************************/

// Select tools available from the toolbar
var useFullExtent=true;
var useZoomIn=true;
var useZoomOut=true;
var usePan=true;
var useIdentify=true;
// select by rectangle tool
var useSelect=true; 
var useClearSelect=true;
// tool to dynamically add a service
var useAddService=true; 
var useLegend=true;

/**************************************************
*	Basic map elements
***************************************************/

// Display/Hide scalebar acetate layer
var addScaleBar = true;
// Display/Hide northarrow acetate layer
var addNorthArrow = true;
// Display/Hide copyright acetate layer
var addCopyRight = false;

/**************************************************
*	Variables for colors, text
***************************************************/

var backColor = "White";
var textColor = "Black";
var tableHeaderBackColor = "Gray";
var tableHeaderTextColor = "White";
var tableBackColor = "Silver";
var tableTextColor = "Black";
var tableTextFont = "Arial,Helvetica,sans-serif";
var layerListTextColor = "Black";
var layerListTextFont = "Arial,Helvetica,sans-serif";

/**************************************************
*	Other
***************************************************/

// 0=none (default); 1=zoomin; 2=zoomout; 3=pan; 4=identify; 5=select;
var toolMode = 0; 
// If defined id does not exist in service, topmost layer will be used
var ActiveLayerId = "0";
// Unit for the scale bar
var scalebarUnits = "miles";
// Area around click used in identify. Helps in locating points and lines
var pixelTolerance = 6;
