﻿<!--//
//Copyright© 2004 Major Technologies, Inc. All Rights Reserved.

//---------------------------  iMap Events  ---------------------------------------

//當完成繪製圖形物件時, 將觸發此事件
/*function Draw_Finish(strDrawType, xmlDrawObject) {
	
}*/

//---------------------------  iMap Events  ---------------------------------------
function FlashCommand(command, args) {
	if (command == "showMsg") {
		alert(args);
	} else if (command == "") {
		
	}
}

function iMap_ShowMessage(strMsg) {
    alert("Message：" + strMsg);
}

//當使用者在物件圖示上方按下並放開滑鼠鍵時
/*function InsertShowObject_Click(ObjectId) {	
	alert("ObjectId=" + ObjectId);
}*/

//-- 當播放軌跡時, 將觸發此事件
/*function InsertShowObject_PlayTrack(lngIndex, strID, dblCarX, dblCarY, dblAngle) {

}*/

//當使用者於『屬性查詢』模式時，在圖層物件上方按下滑鼠鍵，並接著放開滑鼠鍵時
function LayerObject_Click(ObjectString) {
	if (ObjectString != "") {
		//alert("您選取的物件字串為：" + ObjectString);
		var aryObject = ObjectString.split(";"), strObjectId = "";
		
		for (var i=0 ; i<aryObject.length ; i++) {
			var aryObj = aryObject[i].split(",");
			
			if(strObjectId != "") {strObjectId = strObjectId + ",";}
			strObjectId = strObjectId + aryObj[0];
		}
		//alert("objectid="+strObjectId);
		window.open("Map_ObjectInfoResult.asp?smode=s9&objectid="+strObjectId, "_blank");
	} else {
		alert("找不到物件！");
	}
}

function ShowMsg(strMsg) {
	alert(strMsg);
}
//-->