| | |
| | | <script type="text/javascript" src="http://api.map.baidu.com/library/SearchInfoWindow/1.5/src/SearchInfoWindow_min.js"></script>
|
| | | <link rel="stylesheet" href="http://api.map.baidu.com/library/SearchInfoWindow/1.5/src/SearchInfoWindow_min.css" />
|
| | | <link href="css/basic.css" type="text/css" rel="stylesheet" />
|
| | | <link href="css/common.css" type="text/css" rel="stylesheet" />
|
| | | <link href="css/index_layout.css" type="text/css" rel="stylesheet" />
|
| | | <link rel="stylesheet" href="css/img-change.css">
|
| | | <link rel="stylesheet" href="css/confirm.css">
|
| | |
| | | <div id="content">
|
| | | <div class="nav-map small">
|
| | | <!-- 电池分布图 -->
|
| | | <div class="side-bar abs">
|
| | | <div class="lside"></div>
|
| | | </div>
|
| | | <div class="china-map" id="map">
|
| | | <div class="img-change" style="display:none;">
|
| | | <div class="img-list">
|
| | |
| | | <div class="clear"></div>
|
| | | <script type="text/javascript" src="pages/js/base.js"></script>
|
| | | <script type="text/javascript" src="pages/js/common.js"></script>
|
| | | <script type="text/javascript" src="pages/js/pages/siderbar.js"></script>
|
| | | <script type="text/javascript" src="js/panel.js"></script>
|
| | | <script type="text/javascript" src="js/search.js"></script>
|
| | | <script type="text/javascript" src="js/changePinYin.js"></script>
|
| | |
| | | $('#main .del-module').remove(); //移除class="del-module"的内容
|
| | | //根据饼状图的数量确定位置和大小
|
| | | getMapHt();
|
| | | |
| | | $('.side-bar').resizable({
|
| | | minWidth: 190,
|
| | | maxWidth: 500
|
| | | });
|
| | | /* switch(pieLen){
|
| | | case 0:
|
| | | $('#main .china-map').remove();
|
| | |
| | |
|
| | | createIconExplain($('#map'));
|
| | |
|
| | | searchAllProvince(); // 生成维护区列表
|
| | | //searchAllProvince(); // 生成维护区列表
|
| | | /* addCommonDotHome(commonDot);
|
| | | createWarnDot(map, warnDotList);
|
| | | dischargeTimeOut(map, dischargeDotList);
|
| | |
| | | function createMapDot(map, dotList) {
|
| | | // 清空覆盖物和对应的mk点
|
| | | mkList = [];
|
| | | |
| | | // 遍历查询内容生成对应的图标
|
| | | for(var i = 0; i < dotList.length; i++) {
|
| | | var dotIcon = new BMap.Icon(getMapStateImg(mapImages, dotList[i].msg), new BMap.Size(36, 30)); // 设置图片
|
| | |
|
| | | var dotIcon = new BMap.Icon(getMapStateImg(mapImages, dotList[0].msg), new BMap.Size(36, 30)); // 设置图片
|
| | | var pt = new BMap.Point(dotList[i].lng, dotList[i].lat);
|
| | |
|
| | | var mk = new BMap.Marker(pt, {icon:dotIcon}); // 定义marker点
|
| | | var mk = new BMap.Marker(pt, {icon: dotIcon}); // 定义marker点
|
| | | addMenu(mk, mapDel);
|
| | | deletePoint(map, dotList[i].title);
|
| | | // 向mk点添加label
|
| | |
| | | map.addOverlay(mk);
|
| | | }
|
| | | }
|
| | | |
| | | // |
| | |
|
| | | // 删除地图上的指定点
|
| | | function deletePoint(map, msg){
|
| | |
| | | success: function(data){
|
| | | data = eval('('+data+')');
|
| | | var list = eval('('+data.result+')');
|
| | | //console.info(list);
|
| | | console.log(list.length);
|
| | | allStation = new Array();
|
| | | if(list!=undefined && list.length>0){
|
| | | for(var i=0;i<list.length;i++){
|
| | | //console.info("第"+i+"次:"+model.data[i].binformation.num);
|
| | | //setAllStation(model.data[i],allStation);
|
| | | for(var i=0;i<10;i++){
|
| | | var tmp = {
|
| | | binformation:list[i].data,
|
| | | alarm_num:list[i].code, //告警数目
|
| | |
| | | //console.info(allStation);
|
| | | createMapDot(map, allStation);
|
| | |
|
| | | setTimeout(searchStation, 4000); |
| | | //setTimeout(searchStation, 4000); |
| | | }
|
| | | /* for(var i=0;i<allStation.length;i++){
|
| | | if(allStation[i].low_num>0){ //落后数目 |
| | | behindCellList.push(analyzeData(allStation[i]));
|
| | | //console.info(analyzeData(allStation[i]));
|
| | | }else if(allStation[i].alarm_num>0){ //告警数目
|
| | | warnDotList.push(analyzeData(allStation[i]));
|
| | | }else if(allStation[i].delay_num > 0){ //延时数目 |
| | | dischargeDotList.push(analyzeData(allStation[i]));
|
| | | }else{
|
| | | commonDot.push(analyzeData(allStation[i]));
|
| | | }
|
| | | }
|
| | | |
| | | // 清空覆盖物和对应的mk点
|
| | | map.clearOverlays();
|
| | | mkList = [];
|
| | | |
| | | addCommonDotHome(commonDot);
|
| | | createWarnDot(map, warnDotList);
|
| | | dischargeTimeOut(map, dischargeDotList);
|
| | | behindDotCell(map, behindCellList); */
|
| | | }
|
| | | });
|
| | | }
|