| | |
| | | } |
| | | var mouseOverHandle = option['mouseover']; |
| | | //弹窗打开和关闭 |
| | | moralMarker.addEventListener("mouseover", function() { |
| | | /*moralMarker.addEventListener("mouseover", function() { |
| | | if(mouseOverHandle!=null&&mouseOverHandle instanceof Function){ |
| | | //将arguments转换成数组 |
| | | var args = Array.prototype.slice.call(arguments); |
| | |
| | | } |
| | | moralMap.closeSearchBox(); |
| | | baiduMap.openInfoWindow(infoWindow, this._point); //开启信息窗口 |
| | | /*if(infoWindow.getContent() == "") { |
| | | if(infoWindow.getContent() == "") { |
| | | var data = this.getData(); |
| | | var option = this.getOption(); |
| | | if(data==null||data["state"]==4){ |
| | |
| | | } |
| | | infoWindow.setContent(dataHandle._getDataOutHtml(data)); |
| | | infoWindow.redraw(); |
| | | }*/ |
| | | } |
| | | }); |
| | | moralMarker.addEventListener("mouseout", function() { |
| | | baiduMap.closeInfoWindow(); |
| | | infoWindow.setContent(""); |
| | | moralMap.openSearchBox(); |
| | | });*/ |
| | | |
| | | moralMarker.addEventListener("mouseover", function() { |
| | | moralMap.openInfoWindow(infoWindow, this._point); //开启信息窗口 |
| | | }); |
| | | moralMarker.addEventListener("mouseout", function() { |
| | | moralMap.closeInfoWindow(); |
| | | }); |
| | | |
| | | //==================infoWindow-end============================ |
| | | //储存监控点 |
| | | moralMap.putEquipment(option['mac'], moralMarker); |