百度地图

来源:互联网 发布:判断平年和闰年 编程 编辑:程序博客网 时间:2024/06/05 15:23
//        map.enableScrollWheelZoom();////        var point = new BMap.Point(116.404, 39.915);//        map.centerAndZoom(city_name, 13);//        var max=0;//        var min=10000;//        var result=[];//         query_city={//            "cityName":city_name,//            "startDate":startDate,//            "endDate":endDate//         };//         $.get(dataService+"/ondoorDaily/heatMapDetail",query_city,function(data){//              JSON.parse(data).forEach(function(e){//              console.log(e);//                if(max<e.tradeCount&&city_name!=e.regionName){//                    max=e.tradeCount;//                }//                if(min>e.tradeCount&&e.tradeCount!=0){//                    min=e.tradeCount;//                }//                var item = {cityLongitude: e.cityLongitude, cityLatitude: e.cityLatitude, tradeCount:e.tradeCount};//                result.push(item);//              });//                 for(var i in result){//                    var obj = result[i];//                   if(obj.tradeCount>0){//                       var rm=new BMapLib.TextIconOverlay(new BMap.Point(obj.cityLongitude, obj.cityLatitude), obj.tradeCount,max,min);//                       map.addOverlay(rm);//                   }//                 }////              var markerClusterer = new BMapLib.MarkerClusterer(map, {markers:markers});////              console.log(markerClusterer.getGridSize());//         });
0 0
原创粉丝点击