|  |  |  | 
|---|
|  |  |  | border: 0; | 
|---|
|  |  |  | height: 85px; | 
|---|
|  |  |  | width: 85px; | 
|---|
|  |  |  | background:url(/screen_api_v2/img/charts_btn_bg_1.png) left top no-repeat; | 
|---|
|  |  |  | background:url(/img/charts_btn_bg_1.png) left top no-repeat; | 
|---|
|  |  |  | background-size: 70%; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | .tools_box .charts_btn:hover { | 
|---|
|  |  |  | cursor:pointer; | 
|---|
|  |  |  | background:url(/screen_api_v2/img/charts_btn_bg_2.png) left top no-repeat; | 
|---|
|  |  |  | background:url(/img/charts_btn_bg_2.png) left top no-repeat; | 
|---|
|  |  |  | background-size: 70%; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | </style> | 
|---|
|  |  |  | 
|---|
|  |  |  | var maxBounds = moralMap.getMaxBounds(); | 
|---|
|  |  |  | var paramMap = {}; | 
|---|
|  |  |  | paramMap["orgId"]=  params['orgId']; | 
|---|
|  |  |  | paramMap["regionCode"]=  params['regionCode']; | 
|---|
|  |  |  | // 为了适配旧接口 | 
|---|
|  |  |  | paramMap["Fe"]=  maxBounds.northeastLat;//东北角纬度,大一点 | 
|---|
|  |  |  | paramMap["Ge"]=  maxBounds.northeastLng;//东北角经度,大一点 | 
|---|
|  |  |  | 
|---|
|  |  |  | obj['mouseover'] = function (type) { | 
|---|
|  |  |  | if(type.target.getData()==null){ | 
|---|
|  |  |  | //当前设备数据为空时,设备悬停事件中 刷新一下数据 | 
|---|
|  |  |  | refreshAllState(); | 
|---|
|  |  |  | //refreshAllState(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | obj['click'] = function(){ | 
|---|
|  |  |  | 
|---|
|  |  |  | paramMap["Ke"]=  bounds.southwestLat;//西北角纬度坐标,小一点 | 
|---|
|  |  |  | paramMap["Le"]=  bounds.southwestLng;//西北角经度坐标,小一点 | 
|---|
|  |  |  | loadLazy("getMonitorpointList",paramMap,addOverMpoints); | 
|---|
|  |  |  | startRefreshPage(); | 
|---|
|  |  |  | //startRefreshPage(); | 
|---|
|  |  |  | showGrid(); | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | //地图加载完成后 加载监控点,速度慢 | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | function callJS(jsonData){ | 
|---|
|  |  |  | moralMap.callJS(jsonData); | 
|---|
|  |  |  | var jsonData = JSON.parse(jsonData); | 
|---|
|  |  |  | var methodName = jsonData.methodName; | 
|---|
|  |  |  | if("JumpBaiduMap" == methodName){ | 
|---|
|  |  |  | moralMap.callJS(jsonData); | 
|---|
|  |  |  | } else if ("RefreshState" == methodName) { | 
|---|
|  |  |  | //$("#searchParam").val(JSON.stringify(jsonData)); | 
|---|
|  |  |  | var states = jsonData.states; | 
|---|
|  |  |  | moralMap.refreshState(states); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | </script> | 
|---|