代码
const map = new BMap.Map('map');
map.centerAndZoom(new BMap.Point(116.404, 39.915), 11);
var ctrl = new BMapLib.TrafficControl({
  showPanel: true, // 是否显示路况提示面板
});
map.addControl(ctrl);

BMapLib.TrafficControl 路况流量预测,点击右上角【路况信息】查看未来路况

预览