亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? aimsclick.js

?? 用ARCIMS在客戶端框選一塊區(qū)域求面積。
?? JS
?? 第 1 頁 / 共 2 頁
字號:
// aimsClick.js
/*
*  JavaScript template file for ArcIMS HTML Viewer
*		dependent on aimsXML.js, ArcIMSparam.js, aimsCommon.js, aimsMap.js,
*		aimsLayers.js, aimsDHTML.js
*		aimsNavigation.js
*/

aimsClickPresent=true;

var onOVArea = false;

// Global vars to save mouse position
var mouseX=0;
var mouseY=0;
var x1=0;
var y1=0;
var x2=0;
var y2=0;
var zleft=0;
var zright=0;
var ztop=0;
var zbottom=0;

var totalMeasure=0;
var currentMeasure=0;

//MeasureArea
var currentArea = 0;
//end MeasureArea

var lastTotMeasure=0;

// variables for interactive clicks
var clickCount = 0;
var	clickPointX = new Array();
var clickPointY = new Array();
var clickMeasure = new Array();
	// type - 1=Measure; 2=SelectLine ; 3=SelectPolygon
var clickType = 1;

var shapeSelectBuffer = false;

var panning=false;
var zooming=false;
var selectBox=false;
var blankImage = "images/map.gif";

var leftButton =1;
var rightButton = 2;
if (isNav) {
	leftButton = 1;
	rightButton = 3;
}


/*  *****************************************************
*	Point click functions
* 	used by Measure and Select by Line/Polygon
*	*****************************************************
*/

// put a point at click and add to clickCount
function clickAddPoint() {
	var theX = mouseX;
	var theY = mouseY;
	getMapXY(theX,theY);
	clickPointX[clickCount]=mapX;
	clickPointY[clickCount]=mapY;
	clickCount += 1;
	selectCount=0;
	totalMeasure = totalMeasure + currentMeasure;
		//var u = Math.pow(10,numDecimals);
		//if (totalMeasure!=0) totalMeasure = parseInt(totalMeasure*u+0.5)/u;
		
		//MeasureArea
      if (clickCount > 2) {
        ComputeArea();
        }
      else
        currentArea = 0;
    // end MeasureArea
    
	clickMeasure[clickCount]=totalMeasure;
	legendTemp=legendVisible;
	legendVisible=false;
	var theString = writeXML();
	var theNum = 99;
	sendToServer(imsURL,theString,theNum);

}

// zero out all clicks in clickCount
function resetClick() {
	var c1 = clickCount;
	clickCount=0;
	clickPointX.length=1;
	clickPointY.length=1;
	
		//MeasureArea
	currentArea=0;
	  // end MeasureArea

	currentMeasure=0;
	totalMeasure=0;
	lastTotMeasure=0;
	clickMeasure.length=1;
	selectCount=0;
	
	legendTemp=legendVisible;
	legendVisible=false;
	var theString = writeXML();
	var theNum = 99;
		//showRetrieveMap();
	sendToServer(imsURL,theString,theNum);
		
	if (toolMode==20) updateMeasureBox();

}	

// remove last click from clickCount
function deleteClick() {
	var c1 = clickCount;
	clickCount=clickCount-1;
	selectCount=0;
	if (clickCount<0) clickCount=0;
	if (clickCount>0) {
		totalMeasure = clickMeasure[clickCount]
		clickPointX.length=clickCount;
		clickPointY.length=clickCount;
		clickMeasure.length=clickCount;
		
	} else {
		totalMeasure=0;
		clickMeasure[0]=0;
	}
	currentMeasure=0;
	if (c1>0) {
		legendTemp=legendVisible;
		legendVisible=false;
		var theString = writeXML();
		var theNum = 99;
		sendToServer(imsURL,theString,theNum);
	}
	
}


// MeasureArea
function ComputeArea () {
  var workarea = 0.0;

  cai = clickCount - 1;
  caj = 0;

  while (caj < clickCount) {
    xjyi = clickPointX[caj] * clickPointY[cai];
    xiyj = clickPointX[cai] * clickPointY[caj];
    xydiff = (xjyi - xiyj);
    workarea = workarea+xydiff;
    cai = caj;
    caj = parseFloat(caj + 1);  
  }

  units2 = invertUnits(ScaleBarUnits, MapUnits);
  units2 = units2 * units2;

//workarea = Math.abs(workarea / ( 2.0 * units2) * 640);   // hard-coded for SqMiles to Acres
  workarea = Math.abs(workarea / ( 2.0 * units2));    // hard-coded for SqMiles

  var u = Math.pow(10,numDecimals);
  if (!isNav) workarea = parseInt(workarea * u + 0.5) / u

  currentArea = workarea;  
}


//MeasureArea return number of mapunits per scalebar unit
function invertUnits(sUnits,mUnits) {	
	
	var mDistance = 0.0;
	if (mUnits == "FEET") {
		if (sUnits=="MILES") {
			mDistance = 5280;
		} else if (sUnits == "METERS") {
			mDistance = 3.280833;
		} else if (sUnits == "KILOMETERS") {
			mDistance = 3280.833;
		}
	} else {  //METERS
		if (sUnits=="MILES") {
			mDistance = 1609;
		} else if (sUnits == "FEET") {
			mDistance = 0.304800609601;
		} else if (sUnits == "KILOMETERS") {
			mDistance = 0.000304800609601;
		}
	}
	return mDistance;
}

// end MeasureArea

//keep track of currently selected tool, and display it to user
// set the imsMap cursor tool
function clickFunction (toolName) {
	if (hasLayer("measureBox"))
		hideLayer("measureBox");
	switch(toolName) {
	// Zooming functions
	case "zoomin":
		// zoom in mode
		toolMode = 1;
		panning=false;
		selectBox=false;
		if (isIE)	{
			document.all.theTop.style.cursor = "crosshair";
			theCursor = document.all.theTop.style.cursor;
		}
		modeBlurb = modeList[0];
		//if (useTextFrame) parent.TextFrame.document.location= appDir + "text.htm";
		break
	case "zoomout":
		// zoom out mode
		toolMode = 2;
		panning=false;
		selectBox=false;
		if (isIE)	{
			document.all.theTop.style.cursor = "crosshair";
			theCursor = document.all.theTop.style.cursor;
		}
		modeBlurb = modeList[1];
		//if (useTextFrame) parent.TextFrame.document.location= appDir + "text.htm";
		break
	case "zoomlast":
		zoomBack();
		panning=false;
		zooming=false;
		selectBox=false;
		break
	case "zoomactive":
		//alert(LayerExtent[ActiveLayerIndex]);
		var q = LayerExtent[ActiveLayerIndex].split("|");
		panning=false;
		zooming=false;
		selectBox=false;
		//zoomToEnvelope(parseFloat(q[0]),parseFloat(q[1]),parseFloat(q[2]),parseFloat(q[3]));
		
		var l = parseFloat(setDecimalString(q[0]));
		var b = parseFloat(setDecimalString(q[1]));
		var r = parseFloat(setDecimalString(q[2]));
		var t = parseFloat(setDecimalString(q[3]));
		var w = r-l;
		var h = t-b;
		// add a bit of a margin around the layer
		var wm = w * (5/100);
		var hm = h * (5/100);
		l = l - wm;
		r = r + wm;
		b = b - hm;
		t = t + hm;
		zoomToEnvelope(l,b,r,t);
		break
	case "fullextent":
		fullExtent();
		break
		
	// Pan functions
	case "pan":
		// pan mode
		toolMode = 3;
		
		zooming=false;
		selectBox=false;
		if (isIE)	{
			document.all.theTop.style.cursor = "move";
			theCursor = document.all.theTop.style.cursor;
		}
		modeBlurb = modeList[2];
		//if (useTextFrame) parent.TextFrame.document.location= appDir + "text.htm";
		break

	// Identify-Hyperlink functions
	case "identify":
		// identify mode - layer attributes - requires aimsIdentify.js
		panning=false;
		zooming=false;
		selectBox=false;
		shapeSelectBuffer = false;
		if (canQuery) {
			toolMode = 4;
			
			if (isIE)	{
				document.all.theTop.style.cursor = "crosshair";
				theCursor = document.all.theTop.style.cursor;
			}
			modeBlurb = modeList[3];
		} else {
			alert(msgList[46]);
		}
		//alert("Function Not Implemented");
		
		
		
		showGeocode=false;
		if (useTextFrame) parent.TextFrame.document.location= appDir + "text.htm";
		hideLayer("measureBox");
		break

	case "identifyall":
		// identify drill mode
		panning=false;
		zooming=false;
		selectBox=false;
		shapeSelectBuffer = false;
		toolMode = 5;
		if (canQuery) {
			if (isIE)	{
				document.all.theTop.style.cursor = "crosshair";
				theCursor = document.all.theTop.style.cursor;
			}
			//modeBlurb = modeList[19]; // identify all
			modeBlurb = modeList[20]; // identify visible features
			//modeBlurb = modeList[3]; // identify
		} else {
			alert(msgList[46]);
		}
		//alert("Function Not Implemented");
		showGeocode=false;
		drawSelectBoundary=false;
		if (useTextFrame) parent.TextFrame.document.location= appDir + "text.htm";
		hideLayer("measureBox");
		break
	case "hyperlink":
		// hyperlink mode - requires aimsIdentify.js
		var isOk = false;
		var j=-1;
		panning=false;
		zooming=false;
		selectBox=false;
		shapeSelectBuffer = false;
		toolMode = 15;
		modeBlurb = modeList[9];
		showGeocode=false;
		if (useTextFrame) parent.TextFrame.document.location= appDir + "text.htm";
		hideLayer("measureBox");
		var isOk = checkHyperLinkLayer(ActiveLayerIndex)
		if (isOk) {
			if (canQuery) {
				
				
				if (isIE)	{
					document.all.theTop.style.cursor = "crosshair";
					theCursor = document.all.theTop.style.cursor;
				}
				
			} else {
				alert(msgList[46]);
			}
			//alert("Function Not Implemented");
		} else {
			currentHyperLinkLayer="";
			currentHyperLinkField="";
			alert(msgList[47]);

		}
		break
		
	case "hyperlinkany":
		// hyperlink mode - requires aimsIdentify.js
		var j=-1;
		panning=false;
		zooming=false;
		selectBox=false;
		shapeSelectBuffer = false;
		toolMode = 30;
		modeBlurb = modeList[9];
		showGeocode=false;
		if (useTextFrame) parent.TextFrame.document.location= appDir + "text.htm";
		hideLayer("measureBox");
			if (canQuery) {
				
				
				if (isIE)	{
					document.all.theTop.style.cursor = "crosshair";
					theCursor = document.all.theTop.style.cursor;
				}
				
			} else {
				alert(msgList[46]);
			}
			//alert("Function Not Implemented");
		break
		
	// Measure-Unit function
	case "measure":
		panning=false;
		zooming=false;
		selectBox=false;
		shapeSelectBuffer = false;
		if (clickCount>0) {
			if (totalMeasure==0) resetClick();
		}
		toolMode = 20;
		if (isIE)	{
			document.all.theTop.style.cursor = "crosshair";
			theCursor = document.all.theTop.style.cursor;
		}
		modeBlurb = modeList[12];
		if (clickType==1) {
			//if (useTextFrame) parent.TextFrame.location= appDir + "measure.htm";
				showLayer("measureBox");
				updateMeasureBox();
		}
		showGeocode=false;
		break
		
	case "setunits":
		if (useTextFrame) {
			parent.TextFrame.location = "setUnits.htm";
		} else {
			window.open((appDir + "setUnits.htm"),"OptionWindow","width=575,height=120,scrollbars=yes,resizable=yes");
		}
		break
		
	// Graphic Selection functions
	case "shape":
		panning=false;
		zooming=false;
		selectBox=false;
		shapeSelectBuffer = false;
		toolMode = 21;
		if (isIE)	{
			document.all.theTop.style.cursor = "crosshair";
			theCursor = document.all.theTop.style.cursor;
		}

		modeBlurb = modeList[13];
	
		showGeocode=false;

		hideLayer("measureBox");
		break
		
	case "selectbox":
		panning=false;
		zooming=false;
		// select mode - requires aimsSelect.js
		if (canQuery) {
			toolMode = 10;
			queryTool=0;
			clickCount=0;
			showBuffer=false;
			if (isIE)	{
				document.all.theTop.style.cursor = "crosshair";
				theCursor = document.all.theTop.style.cursor;
			}

			modeBlurb = modeList[4];
		} else {
			alert(msgList[46]);
		}
		//alert("Function Not Implemented");
		showGeocode=false;
		if (useTextFrame) parent.TextFrame.document.location= appDir + "text.htm";
		hideLayer("measureBox");
		break
		
	case "selectpoint":
		panning=false;
		zooming=false;
		shapeSelectBuffer = false;
		// select mode - requires aimsSelect.js
		if (canQuery) {
			toolMode = 11;
			queryTool=0;
			clickCount=0;
			 resetClick();
			if (isIE)	{
				document.all.theTop.style.cursor = "hand";
				theCursor = document.all.theTop.style.cursor;
			}

			modeBlurb = modeList[5];
		} else {
			alert(msgList[46]);
		}
		//alert("Function Not Implemented");
		showGeocode=false;
		showBuffer=false;
		hideLayer("measureBox");
		break
		
	case "selectline":
		panning=false;
		zooming=false;
		shapeSelectBuffer = false;
		// select mode - requires aimsSelect.js
		if (canQuery) {
			toolMode = 12;
			queryTool=0;
			if (isIE)	{
				document.all.theTop.style.cursor = "crosshair";

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人精品视频.| 99久久亚洲一区二区三区青草| 欧美激情一区二区三区在线| 欧美午夜精品免费| 国产大片一区二区| 轻轻草成人在线| 一区二区三区四区乱视频| 精品国产91洋老外米糕| 欧美乱妇20p| 色猫猫国产区一区二在线视频| 久久国产剧场电影| 午夜精品成人在线| 亚洲精品乱码久久久久久久久| 国产日韩精品一区二区三区| 欧美一区二区三区小说| 欧美视频一区二| 91麻豆免费观看| 成人黄页在线观看| 国产精品综合久久| 韩国欧美国产一区| 秋霞成人午夜伦在线观看| 亚洲高清免费观看高清完整版在线观看 | 成人网页在线观看| 国产精品第四页| 国产视频在线观看一区二区三区| 91精品国产综合久久精品app| 91麻豆视频网站| 91色在线porny| 99精品欧美一区二区三区小说| 丁香六月综合激情| 丁香六月久久综合狠狠色| 国产大陆亚洲精品国产| 国产成人高清在线| 国产精品中文欧美| 国产精品影视天天线| 韩国视频一区二区| 国产麻豆视频一区二区| 激情亚洲综合在线| 精品一区二区三区不卡| 精品一区二区三区免费视频| 激情欧美一区二区三区在线观看| 久久aⅴ国产欧美74aaa| 精品一区二区三区在线视频| 国产综合久久久久久鬼色| 久久精品国产久精国产爱| 久久99九九99精品| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 国产成人av一区二区三区在线| 国产麻豆视频精品| 成人av网站在线观看| 91麻豆123| 日本韩国欧美在线| 欧美日韩国产另类不卡| 欧美一区日本一区韩国一区| 精品三级av在线| 国产人久久人人人人爽| 亚洲欧洲av在线| 亚洲一区二区三区爽爽爽爽爽 | 老色鬼精品视频在线观看播放| 麻豆极品一区二区三区| 国产精品一区免费视频| 波多野结衣中文字幕一区| 欧美最新大片在线看| 6080午夜不卡| 国产欧美日韩另类一区| 亚洲综合久久久久| 美女www一区二区| 国产·精品毛片| 欧美午夜电影在线播放| 欧美电影免费提供在线观看| 欧美精彩视频一区二区三区| 亚洲精品欧美激情| 久久99精品久久久久婷婷| 成人国产亚洲欧美成人综合网| 欧美在线免费观看视频| 亚洲精品在线免费观看视频| 中文字幕av在线一区二区三区| 亚洲第一成年网| 粉嫩一区二区三区在线看| 欧美视频精品在线| 久久久久久免费网| 婷婷国产在线综合| 成人午夜碰碰视频| 欧美一区二视频| 中文字幕日韩欧美一区二区三区| 午夜日韩在线电影| 不卡视频免费播放| 日韩一卡二卡三卡四卡| 亚洲免费观看在线视频| 激情伊人五月天久久综合| 欧美亚洲动漫精品| 国产午夜精品一区二区三区视频| 五月婷婷另类国产| jizz一区二区| 欧美变态凌虐bdsm| 亚洲一级二级在线| 成人免费黄色大片| 欧美成人精精品一区二区频| 亚洲一区二区三区在线看| 成人三级伦理片| 日韩一级免费观看| 午夜视频在线观看一区二区| va亚洲va日韩不卡在线观看| 久久伊人中文字幕| 蜜臀久久99精品久久久久久9| 色哟哟在线观看一区二区三区| 久久综合久久鬼色| 久久精品国产99国产精品| 欧美福利视频一区| 亚洲天堂成人网| 成人app在线| 久久精品人人做| 久久精品国产秦先生| 欧美一级日韩不卡播放免费| 天涯成人国产亚洲精品一区av| 欧美福利视频一区| 男男成人高潮片免费网站| 蜜臀av亚洲一区中文字幕| 成人永久aaa| 久久久午夜电影| 久久99精品国产91久久来源| 欧美日韩国产大片| 亚洲图片有声小说| 欧美视频在线观看一区| 一区二区成人在线视频| 色综合中文字幕| 亚洲人精品午夜| 99精品久久只有精品| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 亚洲精品在线观看视频| 蜜臀av性久久久久蜜臀aⅴ流畅| 欧美日韩久久久久久| 亚洲电影在线播放| 欧美色综合影院| 天堂精品中文字幕在线| 欧美日韩国产免费| 日本欧美大码aⅴ在线播放| 日韩午夜精品电影| 九色|91porny| 久久久久久久久久久电影| 国产精品一二三四区| 国产一区二区在线视频| 久久草av在线| 中文字幕乱码一区二区免费| 欧美午夜不卡在线观看免费| 国产裸体歌舞团一区二区| 另类小说一区二区三区| 久久99精品国产91久久来源| 国产精品久久一级| 日韩欧美国产一区在线观看| 日韩一区二区麻豆国产| 美女视频免费一区| 国产日韩欧美激情| 99久久99久久综合| 亚洲chinese男男1069| 日韩一二三区视频| 国产成人无遮挡在线视频| 亚洲视频一二三| 91精品国产综合久久精品麻豆| 精品亚洲aⅴ乱码一区二区三区| 久久久久久久综合狠狠综合| 99精品视频在线播放观看| 亚洲一区免费视频| 欧美电影免费观看完整版| 成人黄色免费短视频| 亚洲国产精品麻豆| 欧美电影免费观看高清完整版| 成人一区二区三区在线观看| 最新不卡av在线| 欧美性猛交xxxxxx富婆| 久久精品国产第一区二区三区| 国产精品国产成人国产三级| 欧美亚洲国产bt| 久久99精品国产麻豆不卡| 欧美在线影院一区二区| 亚洲mv在线观看| 91精品国产一区二区| 成人午夜视频网站| 日本在线观看不卡视频| 国产精品午夜在线观看| 5566中文字幕一区二区电影| 欧美三级中文字幕在线观看| 麻豆国产精品777777在线| 中文字幕在线观看一区| 欧美妇女性影城| 91啪九色porn原创视频在线观看| 免费成人结看片| 亚洲人妖av一区二区| 337p日本欧洲亚洲大胆精品| 日本高清不卡在线观看| 国产精品538一区二区在线| 亚洲成人av资源| 中文字幕亚洲电影| 久久你懂得1024| 欧美夫妻性生活| 欧美中文字幕一区二区三区| 国产aⅴ综合色| 狠狠色狠狠色合久久伊人| 亚洲一区二三区| 国产精品久久午夜|