|
@@ -0,0 +1,105 @@
|
|
|
+/**
|
|
|
+ * 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: '<table border=0><tr><td style="width:100px;overflow:hidden">火灾监控</td><td id="win1-title-hiden" style="display:none;font-size:9px;font-weight:normal;margin-top:3px;"><span style="width:40px;text-align:right;overflow:hidden;">总数:</span><span id="title-label-12" style="color:#31e9ff;display:inline-block;width:50px;text-align:left;"></span><span style="display:inline-block;width:50px;text-align:right;">处置率:</span><span id="title-label-11"></span></td></tr></table>',
|
|
|
+ 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: '<div id="win1" style="margin-top:-20px;"><table border="0" style="border:0px solid #000;"><tr><td colspan=2 style="height:20px;"></td><td id="data_pie_1" rowspan=3 style="width:110px; height:110px; margin-top:-10px;" onclick="show_all_fireAlarm()"></td></tr><tr><td id="data_label_11" class="data_bar_total_label" style="width:80px;" onclick="show_all_fireAlarm()">报告总数</td><td id="data_number_11" class="data_bar_total_number" style="width:100px;" onclick="show_all_fireAlarm()"></td></tr><tr><td id="data_label_12" class="data_bar_alarm_label" onclick="show_all_fireAlarm()">待处理</td><td id="data_number_12" class="data_bar_alarm_number" onclick="show_all_fireAlarm()"></td></tr></table></div>'
|
|
|
+}
|
|
|
+
|
|
|
+var win2_config = {
|
|
|
+ title: '<table border=0><tr><td style="width:100px;overflow:hidden">电气火灾监控</td><td id="win2-title-hiden" style="display:none;font-size:9px;font-weight:normal;margin-top:3px;"><span style="width:40px;text-align:right;overflow:hidden;">总数:</span><span id="title-label-22" style="color:#31e9ff;display:inline-block;width:50px;text-align:left;"></span><span style="display:inline-block;width:50px;text-align:right;">处置率:</span><span id="title-label-21"></span></td></tr></table>',
|
|
|
+ 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: '<div id="win2" style="margin-top:-20px;"><table border="0" style="border:0px solid #000;"><tr><td colspan=2 style="height:20px;"></td><td id="data_pie_2" rowspan=3 style="width:110px; height:110px; margin-top:-10px;" onclick="show_all_efireAlarm()"></td></tr><tr><td id="data_label_21" class="data_bar_total_label" style="width:80px;" onclick="show_all_efireAlarm()">报告总数</td><td id="data_number_21" class="data_bar_total_number" style="width:100px;" onclick="show_all_efireAlarm()"></td></tr><tr><td id="data_label_22" class="data_bar_alarm_label" onclick="show_all_efireAlarm()">待处理</td><td id="data_number_22" class="data_bar_alarm_number" onclick="show_all_efireAlarm()"></td></tr></table></div>'
|
|
|
+}
|
|
|
+
|
|
|
+var win3_config = {
|
|
|
+ title: '<table border=0><tr><td style="width:100px;overflow:hidden">水系统监控</td><td id="win3-title-hiden" style="display:none;font-size:9px;font-weight:normal;margin-top:3px;"><span style="width:40px;text-align:right;overflow:hidden;">总数:</span><span id="title-label-32" style="color:#31e9ff;display:inline-block;width:50px;text-align:left;"></span><span style="display:inline-block;width:50px;text-align:right;">处置率:</span><span id="title-label-31"></span></td></tr></table>',
|
|
|
+ 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,
|