百度地图实时路况
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=ZUONbpqGBsYGXNIYHicvbAbM"></script>
<script type="text/javascript" src="http://api.map.baidu.com/library/TrafficControl/1.4/src/TrafficControl_min.js"></script>
var ctrl = new BMapLib.TrafficControl({
showPanel: false
});
map.addControl(ctrl);
ctrl.showTraffic();//显示路况
ctrl.remove();//关闭实时路况
//去掉实时路况多余的文字
.maplibTfctr {
display: none;
}
.maplibTc {
display:none
}