| 
					
				 | 
			
			
				@@ -98,3 +98,53 @@ THING.Utils.dynamicLoad(fileArr, function () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 // 监听建筑层级的 LeaveLevel 事件
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 app.on(THING.EventType.LeaveLevel, ".Building", function (ev) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 要进入的层级对象
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    var current = ev.current;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // 上一层级对象(退出的层级)
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    var preObject = ev.previous;
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if (current.parent === preObject) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        removeMark();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    else {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        removeMark();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+})
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+/**
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * 说明:注册事件
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ */
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+function registerEvent() {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    var _this = this
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // 楼层横向展开按钮的点击事件,楼层展开只在建筑有2层或2层以上的楼层才会生效
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $('#horizontalExpansion').on('click', function () {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        stopRotate();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        checkBtnActives(['#mapBg', '#sceneSetting']);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let expandState = building.getAttribute('expandState');
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if ($(this).hasClass('active')) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // 楼层横向展开关闭
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (expandState == 'horizontal') {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $(this).removeClass('active');
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                horizontalExpand(building, 'close');
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } else {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // 楼层横向展开前应判断楼层是否处于垂直展开状态,是,则应先关闭垂直展开,然后横向展开
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (expandState != 'moving') {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $(this).addClass('active');
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $('#verticalExpansion').removeClass('active');
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (expandState == 'vertical') {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    verticalToHorizontal(building);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } else {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    horizontalExpand(building, 'horizontal');
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        restarRotate();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    });
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // 楼层垂直展开按钮的点击事件,楼层展开只在建筑有2层或2层以上的楼层才会生效
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    $('#verticalExpansion').on('click', function () {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        stopRotate();
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        checkBtnActives(['#mapBg', '#sceneSetting']);
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let expandState = building.getAttribute('expandState');
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if ($(this).hasClass('active')) {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // 楼层垂直展开关闭
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (expandState == 'vertical') {
 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                $(this).removeClass('active');
 
			 |