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

📄 arcimsparam.js

📁 最基本的IMS功能可以调试
💻 JS
📖 第 1 页 / 共 2 页
字号:
// ArcIMSparam.js// javascript file with parameters specific to calling page//***************************************************************************//*			parameters File for HTML Template		    *//***************************************************************************// get machine namevar hostName = document.location.host;// common portion of urlvar esriBlurb = "/servlet/com.esri.esrimap.Esrimap?ServiceName="// make URL for getting mapservice catalogvar catURL = "http://" + hostName + esriBlurb + "catalog";// make prefix for URLvar serverURL  = "http://" + hostName + esriBlurb;//*********************************************************************//*			parameters set by Designer			                     *//*********************************************************************var imsURL = 'http://zouhuihui/servlet/com.esri.esrimap.Esrimap?ServiceName=Santaclara';var imsOVURL =  'http://zouhuihui/servlet/com.esri.esrimap.Esrimap?ServiceName=Santaclara';var imsQueryURL = '';var imsGeocodeURL = '';//initial map extentvar startLeft = -122.202477;var startRight = -121.209338;var startTop = 37.5;var startBottom = 36.8749961853027;//maximum map extentvar limitLeft = -122.25;var limitRight = -121.125;var limitTop = 37.5;var limitBottom = 36.8749961853027;var usePan=true;var usePanNorth=true;var usePanWest=true;var usePanEast=true;var usePanSouth=true;var useZoomIn=true;var useZoomOut=true;var useFullExtent=true;var useZoomActive=true;var useZoomLast=true;var useIdentify=true;var useMeasure=true;var useSetUnits=true;var useSelect=true;var useQuery=true;var useFind=true;var useGeocode=false;var useStoredQuery=false;var useClearSelect=true;var usePrint=true;var useGeoNetwork=false;var useBuffer=true;var useExtract=false;var MapUnits = "Meters";var ScaleBarUnits = "Meters";// End of Designer set parametersvar useHyperLink=false;var useHyperLinkAny=false;var useIdentifyAll=false;var useBufferShape=false; var hasToolBarOnLayer=false;	// useHyperLink takes priority - both cannot be trueif (useHyperLink) useHyperLinkAny=false;	// useIdentify takes priority - both cannot be trueif (useIdentify) useIdentifyAll=false;	// allow debuggingvar setDebug=true;/*************************************** Basic Map parameters**************************************/// variables for setting component colorsvar mapBackColor = "";var ovBoxColor = "#ff0000";var ovBoxSize = 3;var zoomBoxColor = "#ff0000";// variables for using individual componentsvar hasOVMap = true;var hasTOC = true;var useModeFrame = true;// variables for map pixel offset from upper left corner of frame	// horizontal offsetvar hspc = 0;	// vertical offsetvar vspc = 0;//panning factor for arrow buttonsvar panFactor = 85/100;//zoom factors for v.3var zoomFactor = 2// margin factor for zooming in on selected lines and polygons - based on feature width and height. . . margin will be selectMargin * width or heightvar selectMargin = 25/100;// margin margin factor for zooming in on selected points - based on full extent. . . margin will be selectPointMargin * fullWidth or fullHeightvar selectPointMargin = 25/1000// show the scale factorvar showScalePercent=true;// display coords in status linevar showXYs=true;// Have ArcXML responses URL encoded? Will not work with multi-byte charactersvar doURLencode = false;// automatically adjust for ArcMapServer, if necessary	// North Arrow size is smaller from ArcMapServervar autoAdjustForArcMapServer = true;// if it is an ArcMap Service, is it using a Personal Database?	// critical for correct sql expression on queries on date fields	// Syntax for date fields is different for layers from a Personal Database than for other ArcMap Service data sourcesvar isPersonalDatabase = false;//variables for MapDrawing	// North Arrowvar drawNorthArrow = true;var NorthArrowType = "4";var NorthArrowSize = "15";var NorthArrowCoords = "20 35";var NorthArrowAngle = "0";	// Scale Barvar drawScaleBar = true;	// MapUnits=DEGREES,FEET,METERS	// can MapUnits be changed by user?var setMapUnits=false;	// ScaleBarUnits=KILOMETERS,METERS,MILES,FEETvar ScaleBarBackground = "false";var ScaleBarBackColor = "0,0,0";var ScaleBarFontColor = "0,0,0";var ScaleBarColor = "128,128,128";var ScaleBarFont = "";var ScaleBarStyle = "Regular";var ScaleBarRound = "1";var ScaleBarSize = "9";var ScaleBarWidth = "5";var ScaleBarPrecision = 2;var numDecimals = ScaleBarPrecision;	// Scale Bar 2var drawScaleBar2 = false;var ScaleBar2Units = "KILOMETERS";var ScaleBar2Background = "false";var ScaleBar2BackColor = "0,0,0";var ScaleBar2FontColor = "0,0,0";var ScaleBar2Color = "128,128,128";var ScaleBar2Font = "";var ScaleBar2Style = "Regular";var ScaleBar2Round = "1";var ScaleBar2Size = "9";var ScaleBar2Width = "5";var ScaleBar2Precision = 2;	// Copyright blurbvar drawCopyright = true;var CopyrightFont = "";var CopyrightStyle = "Regular";var CopyrightSize = "8";var CopyrightCoords = "3 3";var CopyrightColor = "0,0,0";var CopyrightBackground = "True";var CopyrightBGColor = "255,255,255";var CopyrightGlow = "False";var CopyrightGlowColor = "255,255,255";var CopyrightShadow = "False";var CopyrightShadowColor = "32,32,32";var CurrentYear = new Date().getFullYear();var CopyrightText = "Map created with ArcIMS - Copyright (C) 1992-" +  CurrentYear + " ESRI Inc.";	// place bar behind Copyright text and scalebarsvar drawBottomBar = false;var bottomBarColor = "255,255,255";var bottomBarOutline = "0,0,0";var bottomBarHeight = "18";	// Mode on Mapvar drawModeOnMap = false;var modeRefreshMap = false;var modeMapColor = "255,255,255";var modeMapGlow = "128,0,255";var ovImageVar;var ovBorderWidth = 2;var ovExtentBoxSize = 2;// map image background transparent? - requires gif or png8 typesvar mapTransparent=false;// setup test for Nav 4.0var isIE = false;var isNav = (navigator.appName.indexOf("Netscape")>=0);var isNav4 = false;var isIE4 = false;var is5up = false;//alert(navigator.appVersion);if (isNav) {		if (parseFloat(navigator.appVersion)<5) {		isNav4=true;		//alert("Netscape 4.x or older");	} else {		is5up = true;	}} else {	isIE4=true;	isIE=true;	if ((navigator.appVersion.indexOf("MSIE 5")>0) || (navigator.appVersion.indexOf("MSIE 6")>0)) {		isIE4 = false;		is5up = true;		//alert("IE5");	}}			/*************************************** Extended Map parameters**************************************/// variables for ovmap offsetvar ovHspc = 0;var ovVspc = 0;// color for Main Map zoombox in html hex RGB format//var zoomBoxColor = "#ff0000";// index of initial active layer. . . if more than or equal to layer count top layer usedvar ActiveLayerIndex=99;// variables for using individual componentsvar useTextFrame=true;// use external window for dialogsvar useExternalWindow=false;// colors for tables var textFrameBackColor="Silver";var tableBackColor="White";var textFrameTextColor="Black";var textFrameLinkColor="Blue";var textFrameFormColor="Gray";// LayerList visible at service loadvar showTOC=true;// set layer visibility according to LayerList or by custom programmingvar toggleVisible = true;// set layer visibility of OVMap according to LayerList or by custom programming	// imsURL must equal imsOVMap - depends on one LayerListvar toggleOVVisible = false;// will the LayerList show all layers, not just those available at current scalevar listAllLayers = false;// toggle the check of non-listing of layers in LayerList and Legend// if true, noListLayer array must have an element defined for each layervar hideLayersFromList=false;// layers that will be listed in the LayerList or Legend	// Note: This does not affect map displayvar noListLayer = new Array();// noListLayer[0] = false;// noListLayer[1] = false;// noListLayer[2] = false;// noListLayer[3] = true;	// this one will not be listed// noListLayer[4] = false;	// Mode on floating layervar drawFloatingMode = false;var modeLayerOn = false;var modeLayerColor = "Black";var modeLayerShadowColor = "White";var modeLayerFont = "Arial";var modeLayerSize = "4";	// does the overview map a layer on top of map?... var ovMapIsLayer=true;

⌨️ 快捷键说明

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