15832144755
2022-03-17 bc131131c5c96f8cb3bed679d4a359820c22e335
src/main/webapp/hxzk/mapshow/mapShow.jsp
@@ -310,6 +310,7 @@
                                 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";
@@ -696,6 +697,10 @@
                  <!-- 调用室内定位地图功能 -->
                  <script>
                  var tubiaochicun = 0.03;
                  var lio = 0;
                   // var zuobiaochicun = 30;
                   // var dianliangchicun = 15;
                     function diaoyonghuatu(result) {
                        var truemap_list = getTruemap_all();
@@ -886,7 +891,7 @@
                                    _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;
                                 };
@@ -1027,7 +1032,7 @@
                              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;
                                 }
@@ -1160,9 +1165,10 @@
                                          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';
@@ -1202,7 +1208,7 @@
                                       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);
                                       };
                                    };
                                 }
@@ -1503,7 +1509,10 @@
                           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)
@@ -1538,6 +1547,9 @@
                              _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)
@@ -1638,7 +1650,7 @@
                              }
                              _this.scaleFlag -= 1;
                           }
                           _this.imgScaleList['icon'] = 0.03;
                           _this.imgScaleList['icon'] = tubiaochicun;
                           _this.drawImg();
                        },
                     };