| | |
| | | break; |
| | | case 4: |
| | | state = 'state04'; |
| | | stateName = '离线'; |
| | | stateName = '维护'; |
| | | break; |
| | | } |
| | | return { |
| | |
| | | } |
| | | return $.extend(this, { |
| | | refreshState: function(state) { |
| | | //状态发生变化的时候刷新 图标 |
| | | if(_option['state'] != state){ |
| | | _option['state'] = state; |
| | | var iconObj = _getMapIcon(state); |
| | | this.setIcon(iconObj); |
| | | } |
| | | }, |
| | | getOption: function() { |
| | | return _option; |
| | |
| | | }) |
| | | } |
| | | //new BMap.Marker()这种写法IE7会报错,很奇葩 |
| | | moralMap.MoralMarker.prototype = BMap.Marker.prototype; |
| | | moralMap.MoralMarker.prototype = new BMap.Marker(); |
| | | //监控点对象 包装Mark对象 |
| | | moralMap.Monitorpoint = function(option) { |
| | | var icon = {}; |
| | |
| | | var dataHandle = { |
| | | _getDataOutHtml: function(data) { |
| | | if(data==null||data["state"]==4){ |
| | | return "<br/><h3>设备处于离线状态,暂时没有数据!</h3>"; |
| | | return "<br/><h3>设备正在维护升级,暂时没有数据!</h3>"; |
| | | } |
| | | var mac = data['mac']; |
| | | var itme_mac_key = "item-" + mac + "-" + key; |