| | |
| | | document.getElementById("map2").style.display = "none"; |
| | | document.getElementById("map3").style.display = "none"; |
| | | } else if (data.length == 1) { |
| | | tubiaochicun = 0.015; |
| | | document.getElementById("map0").style.width = "100%"; |
| | | document.getElementById("mapname0").innerHTML = data[0].mapname; |
| | | document.getElementById("maphead0").style.height = "800px"; |
| | |
| | | |
| | | <!-- 调用室内定位地图功能 --> |
| | | <script> |
| | | var tubiaochicun = 0.03; |
| | | var lio = 0; |
| | | // var zuobiaochicun = 30; |
| | | // var dianliangchicun = 15; |
| | | function diaoyonghuatu(result) { |
| | | |
| | | var truemap_list = getTruemap_all(); |
| | |
| | | _this.imgScaleList[key] = 1; |
| | | _this.img = images[key]; |
| | | } else if (key == 'icon') { |
| | | _this.imgScaleList[key] = 0.03; |
| | | _this.imgScaleList[key] = tubiaochicun; |
| | | } else { |
| | | _this.imgScaleList[key] = images[key].naturalWidth / images['map'].naturalWidth; |
| | | }; |
| | |
| | | var tmp_count = new Number(0); |
| | | for (var n in _this.playMark) {//_this.playMark为当前实时在线点位置,为[array[.x, .y]] |
| | | node_list = [Number(_this.playMark[n][4]), Number(_this.playMark[n][5])]; |
| | | if (inFenceOrNot(_this.realFenceList[f][2], node_list)) {//inFenceOrNot(fence_list, node_list) return true/false |
| | | if (inFenceOrNot(_this.realFenceList[f][2], node_list) && _this.playMark[n][3] == "1") {//inFenceOrNot(fence_list, node_list) return true/false |
| | | tmp_count += 1; |
| | | //break; |
| | | } |
| | |
| | | can.fillStyle = 'red'; |
| | | //var f = 8*( _this.imgScaleList['map']); |
| | | can.font = "11px Arial"; |
| | | |
| | | |
| | | tagzuobiao = _this.playMark[i][4] + ',' + _this.playMark[i][5]; |
| | | can.fillText(tagzuobiao, x_cor_now - 20, y_cor_now + 10); |
| | | lio = tagzuobiao.length / 2 * 6 |
| | | can.fillText(tagzuobiao, x_cor_now - lio, y_cor_now + 10); |
| | | }; |
| | | if (_this.viewName == '1') { //是否显示人员名称 |
| | | can.fillStyle = 'white'; |
| | |
| | | if (_this.viewPower == '1') { //是否显示电量 |
| | | can.font = '10px sans-serif'; |
| | | can.fillStyle = 'red'; |
| | | can.fillText("电量:" + _this.playMark[i][2], x_cor_now - 20, y_cor_now + 20); |
| | | can.fillText("电量:" + _this.playMark[i][2], x_cor_now - 16, y_cor_now + 20); |
| | | }; |
| | | }; |
| | | } |
| | |
| | | if ((event.type == "dblclick") && (full_screen == false)) { |
| | | _this.expand = true; |
| | | full_screen = true; |
| | | |
| | | |
| | | tubiaochicun = 0.015; |
| | | // zuobiaochicun = 35; |
| | | // dianliangchicun = 17; |
| | | var targ = event.target; |
| | | var tid = targ.id; |
| | | var id = tid.substr(tid.length - 1, 1) |
| | |
| | | _this.expand = false; |
| | | full_screen = false; |
| | | |
| | | tubiaochicun = 0.03; |
| | | // zuobiaochicun = 30; |
| | | // dianliangchicun = 15; |
| | | var targ = event.target; |
| | | var tid = targ.id; |
| | | var id = tid.substr(tid.length - 1, 1) |
| | |
| | | } |
| | | _this.scaleFlag -= 1; |
| | | } |
| | | _this.imgScaleList['icon'] = 0.03; |
| | | _this.imgScaleList['icon'] = tubiaochicun; |
| | | _this.drawImg(); |
| | | }, |
| | | }; |