// Client-specific parameters for CivXplorer

//***************************************************************************
//*			map service and application server locations		    
//***************************************************************************
// MapServices
var MasterService = "beltrami_master";
var OverviewService = "beltrami_overview";
// ACL map service authorization username and password (must be the same for map and overview!)
var MapServiceAuthorization = "beltrami:OnlineMap2007"; // ex: "username:password"  must be seperated by ":"
// get machine name
var hostName = document.location.host;
var IMShost = "maps.co.beltrami.mn.us";
var docPath = "http://" + document.location.host + document.location.pathname;
var homeDir = docPath.substring(0,docPath.length-12);
var serverAlias = "/servlet/com.esri.esrimap.Esrimap";
// make URL for getting mapservice catalog
var catURL = "http://" + IMShost + serverAlias + "?ServiceName=catalog";
// make prefix for URL
var serverURL  = "http://" + IMShost + serverAlias + "?ServiceName=";
var imsURL = "http://" + IMShost + serverAlias + "?ServiceName=" + MasterService;
var imsOVURL =  "http://" + IMShost + serverAlias +"?ServiceName=" + OverviewService;
var imsQueryURL = imsURL + "&CustomService=Query";
var imsGeocodeURL = imsURL + "&CustomService=Geocode";
// the base servlet connector URL (moved from psXML.js)
var connectorURL = "http://" + IMShost + serverAlias + "?ServiceName=redirect";
// client version
var cVersion = "&ClientVersion=4.0"; // 4.0 or 3.1

//***************************************************************************
//*			map extent variables		    
//***************************************************************************
//initial map extent
var startExtentMapLayer = "base-countybound";
var startLeft = 0;
var startRight = 0;
var startTop = 0;
var startBottom = 0;
//maximum map extent
var limitExtentMapLayer = "base-countybound";
var limitLeft = 0;
var limitRight = 0;
var limitTop = 0;
var limitBottom = 0;
// if true, use a dropdown menu for overlay & image layers....otherwise uses a list
var OverlaysAsDropdown = true;
// if true, zoom to full extent uses starting extent, not maximum extent
var fullZoomAsStart = true;
// if true, user cannot zoom or pan outside of limit- extents
var enforceFullExtent = true;

//*********************************************************************
//*	  CX layout parameters			                    
//*********************************************************************
var CityLogo = homeDir + "clientspecific/smallbanner.jpg";
var CityLogoWidth = 170;
var CityLogoHeight = 82;
var defaultReportTitle = "Beltrami County, MN";

// use start page content over map on page open
var useStartPage = true;
// CX - header content for client
var headerContent = '<img src="clientspecific/smallbanner.jpg" height="60" align="middle"> GIS Online';
// CX - user page location for metadata
var MetaDataURL = "";
// CX - page location for FAQ
var faqURL = "";
// data info and disclaimer strings
var SourceString = "Beltrami County, City of Bemidji, USGS, USDA, MNDNR, Plansight LLC";
var DateString = "March 2007; Aerial Imagery as specified"
var MapDisclaimerString1 = "Beltrami County makes no representation or warranties expressed or implied, with respect to the reuse of data provided herewith, regardless of its format or the means of transmission. There is no guarantee or representation to the user as to the accuracy, currency, suitability, or reliability of this data for any purpose.  The user accepts the data ‘as is’, and assumes all risks associated with its use.  By accepting this data, the user to agrees not to transmit this data or provide access to it or any part of it another party. Beltrami County assumes no responsibility for the actual or consequential damage incurred as a result of any user’s reliance on this data.";
var MapDisclaimerString2 = "Beltrami County makes no representation or warranties expressed or implied, with respect to the reuse of data provided herewith, regardless of its format or the means of transmission. There is no guarantee or representation to the user as to the accuracy, currency, suitability, or reliability of this data for any purpose.  The user accepts the data ‘ as is’, and assumes all risks associated with its use.";
var LogoString = '<B>Created By:</B><br><img src="images/CXplansightsmall.gif">';

//*********************************************************************
//*	  data specific parameters			                    
//*********************************************************************
// starting selection layer
var startingSelectLayerID = "grouped-parcels-norow";
// set variables for layer indexes and query
var layerParcelQueryIDs = new Array("grouped-parcels-norow","grouped-parcels-withrow"); // corresponding mapservice Indexes of property layers
//layerParcelQueryIDs[0] = "optional-parcels";  // needed for single query layer with index 0
var PINFieldName = new Array("PIN","PIN"); // corresponding PIN search fields
var QueryPINIsString = new Array(true,true); // corresponding t/f for pin field is string
var AddressFieldName = new Array("ADDRESS","ADDRESS"); // corresponding house number search fields
var QueryAddressIsString = new Array(true,true); // corresponding t/f for house number field is string
var StreetFieldName = new Array("ADDRESS","ADDRESS");  // corresponding street name search fields
var OwnerFieldName = new Array("OWNERNAME1","OWNERNAME1");  // corresponding owner name search fields

// default values for parcel search
var defaultQueryPin="800090500";
var defaultQueryAddress="315";
var defaultQueryStreet="7TH ST NW";

// geocoding options
var layerGeocodeID = "grouped-roads-roads";
var geocodeOnParcelFail = true;
var defaultQueryIntersection = "7th & Minnesota";

// mailing label resident name option
var mailingResidentText="CURRENT RESIDENT";
var useMailingResidentText = false;
var mailingCSZText = "";
var useMailingCSZText = false;

// buffer/measure/units
var defaultBufferSize = 350;
var MapUnits = "Feet";
var ScaleBarUnits = "Feet";
var numDecimals = 2; // number of decimal places to show after measurements

// no-show layers for legend (include labeling-only layers, image catalogs, etc)
var notInLegend = new Array("grouped-txt-lakename","grouped-txt-roads","grouped-txt-highway","grouped-txt-parid","grouped-txt-parown","grouped-txt-paracre","backgroundlayer1","backgroundlayer2","backgroundlayer3");
// no-show layers for imagery
var notOnPhotos = new Array("backgroundlayer1","backgroundlayer2","backgroundlayer3");
// polygon layers only - list of layers and new drawing specs for on aerial photos
var PhotoColorChangeIDs = new Array("grouped-parcels-norow","grouped-parcels-withrow","grouped-water-lakes");
var PhotoColorChangeSpecs = new Array(new Array("1","solid","255,200,0","1.0","solid","0,0,0","0.0"),new Array("1","solid","255,200,0","1.0","solid","0,0,0","0.0"),new Array("1","solid","51,153,255","0.5","solid","153,255,255","0.25"));
//new Array("0boundary width","1boundary line type","2boundary color","3boundary trans","4fill type","5fill color","6fill trans")

// maximum number of features returned from query
var maxFeaturesReturned = 500;
var maxFeaturesDisplayed = 25;
// number of data samples retrieved for query form
var numberDataSamples = 700;

//*********************************************************************
//*	  map layout and control parameters			                    
//*********************************************************************
// overview map zoom to controls
var ovZoomToLayer = true;
var ovZoomLayer = "backgroundlayer1";
var ovZoomDistance = 2000;
// map colors for background
var mapBackColor = '';
var OVmapBackColor = '';
var legendBackColor = '';
var legendFont = "Century Gothic"; // legend font

// Scale Bar & North Arrow
var drawScaleBar = true;
var drawNorthArrow = true;
var NorthArrowType = "4";
var NorthArrowSize = "15";
var NorthArrowCoords = "40 40"; // used for default and custom North Arrows
var NorthArrowAngle = "0";
// fill in only for custom north arrow image
var useCustomNorthArrow = true;
var CustomNorthArrowImageLoc = "C:/ArcIMS/icons/CXnortharrow.gif"; // use "\\" or "/" as directory dividers!
// custom logo on map
var useCustomMapLogo = false;
var CustomMapLogoImageLoc = ""; // use "\\" or "/" as directory dividers!
var CustomMapLogoHeight = 0;
var CustomMapLogoWidth = 0;

// panning/zooming/selection parameters
var panFactor = 85/100; //panning factor for arrow buttons
var zoomFactor = 2; // single click zoom factor
var selectMargin = 50; // in Map Units - margin factor for zooming in on selected lines and polygons
var selectPointMargin = 500; // in Map Units - margin factor for zooming in on selected points
var pixelTolerance = 5; // search tolerance in pixels around click
// dynamic select/measure
var selectLineColor = "#FF0000";
var selectLineWidth = 3;
var showLength = true; // Show length information on measure line segments and circle radius



