Переглянути джерело

3dModeling buildingCreate.js 朱俊杰 commit at 2021-04-23

朱俊杰 4 роки тому
батько
коміт
3955ace472
1 змінених файлів з 26 додано та 0 видалено
  1. 26 0
      3dModeling/tjby16/buildingCreate.js

+ 26 - 0
3dModeling/tjby16/buildingCreate.js

@@ -606,3 +606,29 @@ function uniq(array) {
 //设备点位标识
 // function createDeviceElement(deviceType, floorNum) {
 //     removeMark();
+//     let data = cleanObj(buildingStore);
+//     for (var i = 0; i < data.length; i++) {
+//         if (data[i].min_level == floorNum) {
+//             let arry = data[i].item;
+//             for (var q = 0; q < arry.length; q++) {
+//                 if (arry[q].dwtype == deviceType) {
+//                     let devicename = arry[q].device_name;
+//                     let dwtype = arry[q].dwtype;
+//                     var ownercode = arry[q].owner_code
+//                     var textAndPictureMarkerHtml =
+//                         `<div  class="textAndPictureMarker" onclick="deviceIcon_click('${dwtype}','${floorNum}','${ownercode}')" style="position: absolute;">
+// 			<div class="text" style="color: #FF0000;font-size: 12px;text-shadow: white  0px 2px, white  2px 0px, white  -2px 0px, white  0px -2px, white  -1.4px -1.4px, white  1.4px 1.4px, white  1.4px -1.4px, white  -1.4px 1.4px;margin-bottom: 5px;">
+// 				`+ devicename + `
+// 			</div>
+// 			<div class="picture" style="height: 30px;width: 30px;margin: auto;">
+// 				<img src="/guide/examples/images/navigation/pointer.png" style="height: 100%;width: 100%;">
+// 			</div>
+// 		</div>`;
+//                     $('#div3d').append($(textAndPictureMarkerHtml));
+//                     createUIAnchor(floorNum);
+//                 }
+
+//             }
+//         }
+//     }
+// }