/** * map.js */ Ext.Loader.setConfig({ enabled: true }); Ext.Loader.setPath('Ext.ux', '../../res/extjs/examples/ux'); Ext.require([ 'Ext.grid.*', 'Ext.data.*', 'Ext.ux.RowExpander', 'Ext.selection.CheckboxModel' ]); var sm = Ext.create('Ext.selection.CheckboxModel'); var myMask; var baseUrl = ""; var theme = ""; var mapStyle = ""; var map; var mapzoom = 11; var company_cur = 0; var StatusStore = null, AlarmStore = null; var firstDraw = true; var storeTime = 60000; var centerLng = 121.475644; var currentLng = 121.475644; var centerLat = 31.1857; var currentLat = 31.1857; var rotation = 0; var alarm_show_window = null; var show_alarm_list; var show_list_cur = 0 var V_LOGINNAME = '', V_PASSWORD = ''; var listSync = true; var synctime = 0; var company_code = ''; var start = 0; var end = 360; var targetZoom = 20; var maxHeight = 10000; var maxWidth = 10000; var SearchList = null; var markers = []; var current_company_code = ""; var LabelShow = false; var MapShow = false; var last_move; var wsUri = "wss://iot.usky.cn:55120"; var websocket = null; var win1_config = { title: '
火灾监控
', titleColor: '#ffffff', titleIconColor: '#ffffff', titleBackgroundColor: 'rgba(0,0,0,0.1)', backgroundColor: 'rgba(23,21,57,0.2)', backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))', border: '1px solid rgba(0,123,255,0.3)', borderRadius: '10px', position: 'absolute', width: 320, height: 120, top: 100, left: 50, zIndex: 200, bodyText: '
报告总数
待处理
' } var win2_config = { title: '
电气火灾监控
', titleColor: '#ffffff', titleIconColor: '#ffffff', titleBackgroundColor: 'rgba(0,0,0,0.1)', backgroundColor: 'rgba(23,21,57,0.2)', backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))', border: '1px solid rgba(0,123,255,0.3)', borderRadius: '10px', position: 'absolute', width: 320, height: 120, top: 260, left: 50, zIndex: 260, bodyText: '
报告总数
待处理
' } var win3_config = { title: '
水系统监控
', titleColor: '#ffffff', titleIconColor: '#ffffff', titleBackgroundColor: 'rgba(0,0,0,0.1)', backgroundColor: 'rgba(23,21,57,0.2)', backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))', border: '1px solid rgba(0,123,255,0.3)', borderRadius: '10px', position: 'absolute', width: 320, height: 120, top: 420, left: 50, zIndex: 260, bodyText: '
报告总数
待处理
' } var win4_config = { title: '
RTU监控
', titleColor: '#ffffff', titleIconColor: '#ffffff', titleBackgroundColor: 'rgba(0,0,0,0.1)', backgroundColor: 'rgba(23,21,57,0.2)', backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))', border: '1px solid rgba(0,123,255,0.3)', borderRadius: '10px', position: 'absolute', width: 320, height: 120, top: 580, left: 50, zIndex: 260, bodyText: '
报告总数
待处理
' } var dev1_config = { title: '
火灾监控设备
设备数:
', titleColor: '#ffffff', titleIconColor: '#ffffff', titleBackgroundColor: 'rgba(0,0,0,0.1)', backgroundColor: 'rgba(23,21,57,0.2)', backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))', border: '1px solid rgba(0,123,255,0.3)', borderRadius: '10px', position: 'absolute', width: 320, height: 100, top: 219, left: 50, zIndex: 200, floding: 'true', bodyText: '
已处理:待处理:处置率:
' } var dev2_config = { title: '
电气火灾监控设备
设备数:
', titleColor: '#ffffff', titleIconColor: '#ffffff', titleBackgroundColor: 'rgba(0,0,0,0.1)', backgroundColor: 'rgba(23,21,57,0.2)', backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))', border: '1px solid rgba(0,123,255,0.3)', borderRadius: '10px', position: 'absolute', width: 320, height: 100, top: 379, left: 50, zIndex: 200, floding: 'true', bodyText: '
已处理:待处理:处置率:
' } var dev3_config = { title: '
水系统监控设备
设备数:
', titleColor: '#ffffff', titleIconColor: '#ffffff', titleBackgroundColor: 'rgba(0,0,0,0.1)', backgroundColor: 'rgba(23,21,57,0.2)', backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))', border: '1px solid rgba(0,123,255,0.3)', borderRadius: '10px', position: 'absolute', width: 320, height: 100, top: 539, left: 50, zIndex: 200, floding: 'true', bodyText: '
已处理:待处理:处置率:
' } var dev4_config = { title: '
RTU监控设备
设备数:
', titleColor: '#ffffff', titleIconColor: '#ffffff', titleBackgroundColor: 'rgba(0,0,0,0.1)', backgroundColor: 'rgba(23,21,57,0.2)', backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))', border: '1px solid rgba(0,123,255,0.3)', borderRadius: '10px', position: 'absolute', width: 320, height: 100, top: 699, left: 50, zIndex: 200, floding: 'true', bodyText: '
已处理:待处理:处置率:
' } var alarm_alert_config = { title: '
', titleColor: '#ffffff', titleIconColor: '#ffffff', titleBackgroundColor: 'rgba(0,0,0,0.1)', backgroundColor: 'rgba(23,21,57,0.2)', backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))', border: '1px solid #31e9ff', borderRadius: '10px', position: 'absolute', width: 320, height: 120, bottom: -100, right: 95, zIndex: 990, bodyText: '
' } var winypxy1_config = { title: '
智能烟感监控
', titleColor: '#ffffff', titleIconColor: '#ffffff', titleBackgroundColor: 'rgba(0,0,0,0.1)', backgroundColor: 'rgba(23,21,57,0.2)', backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))', border: '1px solid rgba(0,123,255,0.3)', borderRadius: '10px', position: 'absolute', width: 320, height: 120, top: 60, left: 50, zIndex: 200, bodyText: '
报告总数
待处理
' } var devypxy1_config = { title: '
智能烟感监控设备
设备数:
', titleColor: '#ffffff', titleIconColor: '#ffffff', titleBackgroundColor: 'rgba(0,0,0,0.1)', backgroundColor: 'rgba(23,21,57,0.2)', backgroundImage: 'radial-gradient(circle, rgba(23,21,57,0.2), rgba(9,9,27,0.8))', border: '1px solid rgba(0,123,255,0.3)', borderRadius: '10px', position: 'absolute', width: 320, height: 100,