高德室内地图1.0的坑点: 切换室内建筑. 不能remove之后再创建. 地图会报错.
访问量: 2609
参考: http://lbs.amap.com/api/indoormap-js-api/guide/mapmethods/
项目中一个地方,要用到不断的切换室内地图. 所以, 使用 indoor_map.setBuilding('B00 ...') 这样才可以.
global_var_indoor_indoor_map.setBuilding(end_point.building_id)
不可行的办法: map.remove(), map = new IndoorMap().
global_var_indoor_indoor_map.remove()
$('#indoor_map_div').remove()
$('body').append("")
global_var_indoor_indoor_map4 = new Indoor.Map('indoor_map_div4',{
key:'6269552399438485be9e72f9785dc004',
buildingId: 'B000A9FG1Q'
// floor: end_point.floor,
// zoom: 15,
// center: end_point.
// searchBarControl: true,
// routeControle: true
});
$('#indoor_map_div4').css({'z-index': 200})
会导致页面加载不出来.
