⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 arcimsparam.js

📁 最基本的IMS功能可以调试
💻 JS
📖 第 1 页 / 共 2 页
字号:
var webParams = "";if (parent.MapFrame!=null) {	webParams = parent.document.location.search;} else {	webParams = document.location.search;}/*************************************** Interactive Map parameters**************************************/// Click points - Measure/Shape Select/Shape Buffervar clickMarkerColor="255,0,0";var clickMarkerType="Circle";var clickMarkerSize="6";/*************************************** Identify/Select/Query/Buffer parameters**************************************/// search tolerance in pixels around clickvar pixelTolerance=2;// color of selected features in decimal RGB formatvar selectColor="255,255,0";// color of highlighted feature in decimal RGB formatvar highlightColor="255,0,0";// level of transparency of selected and highlighted colorvar transparentLevel = "0.5";	// zoom to selected feature if only one is returned?var zoomToSingleSelect = false;	// use only unique values in sample field value listsvar onlyUniqueSamples = true;	// are string queries case insensitive?		// false by default to match Java Viewer and ArcExplorervar queryCaseInsensitive=false;// fields to be returned in identify/selection/query request. . . #ALL#=all fieldsvar selectFields= "#ALL#";//var selectFields= "#ID# #SHAPE#";// swap out the list of returned fields? //If true, a list must be defined in selFieldList[n] for each layer to update selectFieldsvar swapSelectFields=false;// array for each layer's returned fields if swapSelectFields=truevar selFieldList = new Array();// sample set for world - if not #ALL#, id and shape fields required. Separate with a spaceselFieldList[0]="NAME COUNTRY POPULATION #ID# #SHAPE#";selFieldList[1]="URL #ID# #SHAPE#";selFieldList[2]="#ALL#";selFieldList[3]="#ALL#";selFieldList[4]="#ALL#";selFieldList[5]="NAME CONTINENT #ID# #SHAPE#";selFieldList[6]="#ALL#";// use the field alias in the data display? //If true, a list must be defined in fieldAliasList[n] for each layer defining aliases for those fields needing themvar useFieldAlias=false;// array for aliases for each layer's returned fields if useFieldAlias=truevar fieldAliasList  = new Array();// sample set for world - fieldname:alias pairs separated by a bar (|)... if no aliases, use empty string ("")fieldAliasList[0]="NAME:City Name|POPULATION:Population";fieldAliasList[1]="";fieldAliasList[2]="";fieldAliasList[3]="";fieldAliasList[4]="";fieldAliasList[5]="NAME:CountryName";fieldAliasList[6]="";// Hide the ID field display? The ID Field must be included in field list, but we don't have to show it.var hideIDFieldData = false;// Hide the shape field display? The Shape Field must be included in field list, but we don't have to show it.var hideShapeFieldData = false;// parameters for setting up hyperlinks in data displayvar hyperLinkLayers = new Array(); // layers to have hyperlinkvar hyperLinkFields = new Array();	// field in those layers to be used for hyperlinkvar hyperLinkPrefix = new Array();  // prefix (if any) to place before field value to make hyperlink urlvar hyperLinkSuffix = new Array();  // suffix (if any) to place after field value to make hyperlink url/*hyperLinkLayers[0] = "Image";hyperLinkFields[0] = "HOT";hyperLinkPrefix[0] = "/gisdata/world/images/";hyperLinkSuffix[0] = ".jpg";*/// will the returned data be displayed in text frame?var showSelectedData=true;// will the returned features be drawn?var showSelectedFeatures=true;// maximum number of features returned from queryvar maxFeaturesReturned=25;// for ID All - List all visible layers in response - default is false	// if false only visible layers with idenitified features written to table	// if true the names of all visible layers will be diplayed even if no features returnedvar listAllLayersInIDAll = false;// number of data samples retrieved for query formvar numberDataSamples = 50;/*************************************** Legend parameters - aimsLegend.js**************************************/// legend map sizevar legWidth=170;var legHeight=300;var legFont="Arial";var legTitle="Legend";/*************************************** Options parameters - aimsOptions.js**************************************/// allowing user to set optionsvar allowOptions=false;/*************************************** ClassRender parameters - aimsClassRender.js**************************************/// parameters for custom class rendering... overrides default renderervar ClassRenderLayer = new Array();  // layers to have custom renderersvar ClassRenderString = new Array(); // initial custom renderer XML string for the layersClassRenderLayer[0] = "Cities";ClassRenderString[0] = "";/*ClassRenderString[0] ='<VALUEMAPRENDERER lookupfield="population">\n<RANGE LOWER="0" UPPER="1000000">\n<SIMPLEMARKERSYMBOL color="255,0,255" type="circle" size="4" />\n</RANGE>';ClassRenderString[0] = ClassRenderString[0] + '<RANGE LOWER="1000000" UPPER="2500000">\n<SIMPLEMARKERSYMBOL color="255,0,255" type="circle" size="6" />\n</RANGE>';ClassRenderString[0] = ClassRenderString[0] + '<RANGE LOWER="2500000" UPPER="5000000">\n<SIMPLEMARKERSYMBOL color="255,0,255" type="circle" size="9" />\n</RANGE>';ClassRenderString[0] = ClassRenderString[0] + '<RANGE LOWER="5000000" UPPER="10000000">\n<SIMPLEMARKERSYMBOL color="255,0,255" type="circle" size="12" />\n</RANGE>';ClassRenderString[0] = ClassRenderString[0] + '<RANGE LOWER="10000000" UPPER="30000000">\n<SIMPLEMARKERSYMBOL color="255,0,255" type="circle" size="16" />\n</RANGE>\n</VALUEMAPRENDERER>';*//*************************************** Geocode parameters - aimsGeocode.js**************************************/// maximum geocode candidates returned - default = 20var maxGeocodeCandidates=20;// minimal acceptable geocode score for candidatevar minGeocodeScore=50;var geocodePointColor = "255,0,0";var geocodePointSize = "15";var geocodeLabelSize = "12";var geocodePointType = "star";var currentGeocodePointIndex = 0;// custom functions needed for Reverse Geocoding - RouteServer extension requiredvar useReverseGeocode = false;var useRoute=false;// the starting point. . . it all starts here on loadingfunction checkParams() {	appDir = getPath(document.location.pathname);	// global for overview map. . . change if not on same frame as Map	ovImageVar = document.ovImage;	debugOn = 0;	if (parent.TextFrame==null) {		useTextFrame = false;		useExternalWindow=true;	}	if (!hasLayer("measureBox")) useMeasure=false;	if ((!useMeasure) && (!drawScaleBar)) useSetUnits=false;	if (ovImageVar==null) hasOVMap = false;	if (parent.TOCFrame==null) hasTOC = false;	if (parent.ModeFrame==null) useModeFrame = false;			if (isIE)	{		if (hasLayer("theTop")) document.all.theTop.style.cursor = "crosshair";		if (hasOVMap) ovImageVar.style.cursor = "hand";	}			if (hasOVMap) {		// size of ov map image		i2Width = parseInt(ovImageVar.width);		i2Height = parseInt(ovImageVar.height);		forceNewOVMap = false;		// position of ov map		//ovMapLeft = iWidth - (i2Width + 6);		//ovMapTop = 2;	}	if (webParams!="") {		//alert(webParams);		getCommandLineParams(webParams);	}	// if starting extents zero'd then flag to get start from mapservice	if ((startLeft!=0) && (startRight!=0)) getStartingExtent=false;	// if limit extents zero'd then flag to get max from mapservice	if ((limitLeft!=0) && (limitRight!=0)) {		getLimitExtent=false;		enforceFullExtent=true;	}	if (ovBoxColor=="") ovBoxColor = "255,0,0";	//ovBoxColor = convertHexToDec(ovBoxColor);	checkCoords();	if (aimsNavigationPresent) {		// Set up event capture for mouse movement		if (isNav4) {			document.captureEvents(Event.MOUSEMOVE);			document.captureEvents(Event.MOUSEDOWN);			document.captureEvents(Event.MOUSEUP);			//document.captureEvents(Event.MOUSEOUT);		}		document.onmousemove = getMouse;		//document.onmousedown = chkMouseDown;		document.onmousedown = mapTool;		document.onmouseup = chkMouseUp;		//document.onmouseout = chkMouseOut;	} else {		usePan=false;		usePanNorth=false;		usePanWest=false;		usePanEast=false;		usePanSouth=false;		useMeasure=false;		useZoomIn=false;		useZoomOut=false		//useFullExtent=false;		useZoomActive=false;		//useZoomLast=false;		}		if (!aimsBufferPresent) {		useBuffer=false;	}	if (!aimsQueryPresent) {		aimsBufferPresent=false;		useQuery=false;		useFind=false;		useBuffer=false;		useStoredQuery=false;	}	if (!aimsSelectPresent) {		aimsQueryPresent=false;		aimsBufferPresent=false; 		useSelect=false;		useQuery=false;		useFind=false;		useBuffer=false;		useStoredQuery=false;		useClearSelect=false;	}	if (!aimsIdentifyPresent) {		aimsSelectPresent=false;		aimsQueryPresent=false;		aimsBufferPresent=false;		canQuery=false;		useIdentify=false; 		useSelect=false;		useQuery=false;		useFind=false;		useBuffer=false;		useStoredQuery=false;		useHyperLink=false;		useHyperLinkAny=false;		useIdentifyAll=false;	}	if (!aimsGeocodePresent) {		useGeocode=false;		useReverseGeocode=false;	}	if (!aimsPrintPresent) {		usePrint=false;	}	if (!aimsOptionsPresent) {		allowOptions=false;	}	if ((aimsXMLPresent) && (aimsMapPresent)) {		if (aimsClickPresent) clickFunction("zoomin");		if (parent.ToolFrame!=null) parent.ToolFrame.document.location="toolbar.htm";		startMap();	} else {		alert(msgList[0]);	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -