代码
var map = new BMap.Map('map');
map.centerAndZoom(new BMap.Point(116.404, 39.915), 11);

// 创建panel
var panelDOM = document.getElementById('panel');
var panel = new BMap.PlaceDetail(panelDOM, {
  renderOptions: {
    // 显示轮播图
    displayCarousel: true,
    // 显示标签
    displayTag: true,
    // 显示评分
    displayRating: true,
    // 显示人均价格
    displayPrice: true,
    // 显示榜单排名
    displayBangdan: true,
    // 显示标签
    displayTradeTag: true,
    // 显示营业时间
    displayShopHours: true,
    // 显示电话
    displayContactInformation: true,
    // 最大显示电话数量
    contactInformationCount: 3,
    // 显示地址
    displayAddress: true,
    // 显示评论(非全量)
    displayComment: true,
    // 显示评论总个数
    displayCommentTotalCount: true,
  },
});
// 通过uid渲染
panel.render('06d2dffda107b0ef89f15db6');
预览