// Client-specific parameters for CivXplorer

//***************************************************************************
//*			map service and application server locations		    
//***************************************************************************
// MapServices
var MasterService = "roseville_master";
var OverviewService = "roseville_overview";
// ACL map service authorization username and password (must be the same for map and overview!)
var MapServiceAuthorization = ""; // ex: "username:password"  must be seperated by ":"
// get machine name
var hostName = document.location.host;
var IMShost = "maps.metro-inet.us";
var docPath = "http://" + document.location.host + document.location.pathname;
var homeDir = docPath.substring(0,docPath.length-14);
var serverAlias = "/rcarcims/ims" //"/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 = "";
var startLeft = 545306.0000;
var startRight = 571786.000;
var startTop = 189373.000;
var startBottom = 173270.000;
//maximum map extent
var limitExtentMapLayer = "";
var limitLeft = 545306.000;
var limitRight = 571786.000;
var limitTop = 189373.000;
var limitBottom = 173270.000;
// 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;

//*********************************************************************
//*	  data specific parameters			                    
//*********************************************************************
var homeDir = docPath.substring(0,docPath.length-12);
var CityLogo = homeDir + "clientspecific/rose_color.jpg";
var CityLogoWidth = 213;
var CityLogoHeight = 41;
var defaultReportTitle = "City of Roseville";

// use start page content over map on page open
var useStartPage = false;
// CX - header content for client
var headerContent = '<IMG SRC="clientspecific/rose_color.jpg" height="41" style="vertical-align: text-top; padding-right: 20px">City of Roseville Online Mapping';
// CX - page location for metadata
var MetaDataURL = homeDir + "user_information.htm";
// CX - page location for FAQ document
var faqURL = "";
// data info and disclaimer strings
var SourceString = "City of Roseville and Ramsey County, The Lawrence Group";
var DateString = "July 1, 2010 for City of Roseville data and Ramsey County property records data, July 2010 for commercial and residential data, April 2009 for color aerial imagery, All other sources click on Data Information button"
var MapDisclaimerString1 = "This map is neither a legally recorded map nor a survey and is not intended to be used as one. This map is a compilation of records, information and data located in various city, county, state and federal offices and other sources regarding the area shown, and is to be used for reference purposes only. The user of this map acknowledges that the City/County shall not be liable for any damages, and expressly waives all claims, and agrees to defend, indemnify, and hold harmless the City/County from any and all claims brought by the User, its employees or agents, or third parties which arise out of the User's access or use of data provided.";
var MapDisclaimerString2 = "This map is neither a legally recorded map nor a survey and is not intended to be used as one. This map is a compilation of records, information and data located in various city, county, state and federal offices and other sources regarding the area shown, and is to be used for reference purposes only.";
var LogoString = '<B>Created By:</B><BR><IMG SRC="images/CXplansightsmall.gif">';

// set variables for layer indexes and query
var layerParcelQueryIDs = new Array("optional-parcels","optional-parcelpts"); // corresponding mapservice Indexes of property layers
//layerParcelQueryIDs[0] = "optional-parcels";
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("ST_NUM","ENGHOUS"); // corresponding house number search fields
var QueryAddressIsString = new Array(true,false); // corresponding t/f for house number field is string
var StreetFieldName = new Array("ST_NAME","STREET");  // corresponding street name search fields
var OwnerFieldName = new Array("ENPN1","ENPN1");  // corresponding owner name search fields

// default values for parcel search
var defaultQueryPin="032923440031";
var defaultQueryAddress="2660";
var defaultQueryStreet="CIVIC CENTER";

// geocoding options
var layerGeocodeID="base-tlg";
var geocodeOnParcelFail = true;
var defaultQueryIntersection = "LEXINGTON & WOODHILL";

// mailing label resident name option
var mailingResidentText="CURRENT OCCUPANT";
var useMailingResidentText=true;
var mailingCSZText="ROSEVILLE, MN";
var useMailingCSZText=true;

// 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("background","optional-txthwysymbols","optional-txtstreetname","optional-addresses","orthoimg-1940","orthoimg-1953","orthoimg-1974","orthoimg-1985","orthoimg-1996","orthoimg-2000color","orthoimg-2003color","orthoimg-2006color","orthoimg-2008color","orthoimg-2009color","optional-citylimits","grouped-taxmap-labels");
// no-show layers for imagery
var notOnPhotos = new Array("optional-roadedge");
// polygon layers only - list of layers and new drawing specs for on aerial photos
var PhotoColorChangeIDs = new Array("optional-parcels","base-water","optional-buildings");
var PhotoColorChangeSpecs = new Array(new Array("1","solid","255,200,0","1.0","solid","0,0,0","0.0"),new Array("1","solid","0,0,255","1.0","solid","204,255,255","0.4"),new Array("1","solid","175,175,175","0.4","solid","175,175,175","0.4"));
//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 = 2000;
var maxFeaturesDisplayed = 25;

// USER-CONTROLLED variables (initial states)
// number of data samples retrieved for query form
var numberDataSamples = 1000;
// whether to pop up attribute window on selection & query
var showSelectedAttributesImmediately = true;
// display multiple attributes as rows or not (columns)
var showSelectedAttributesAsRows = false;

// overview map zoom to controls
var ovZoomToLayer = false;
var ovZoomLayer = "";
var ovZoomDistance = 2000;
// map colors for background
var mapBackColor = '';
var OVmapBackColor = '';
var legendBackColor = '';
var legendFont = "Tahoma"; // 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 = "E:/wwwroot/HwyShieldIcons/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 = 200; // 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 = 2;
var showLength = true; // Show length information on measure line segments and circle radius
