# 隐藏地图弹窗的区域和驾车规划

This commit is contained in:
vijay-huang 2020-05-25 14:37:58 +08:00
parent cc95c8d0ce
commit 7e1bf467ae
1 changed files with 4 additions and 4 deletions

View File

@ -172,10 +172,10 @@ export default {
content.push('<div class="count">' + item.count + '</div>')
content.push('<div class="time">时间:' + curTime + '</div>')
content.push('<div><span>信号:' + item.signal + '</span><span class="energy">电量:' + item.energy + '</span></div>')
content.push('<div>区域:尖沙咀</div>\n')
if (drivingButton) {
content.push('<button id="btn" class="btn">驾车规划</button>')
}
// content.push('<div></div>\n')
// if (drivingButton) {
// content.push('<button id="btn" class="btn"></button>')
// }
const infoWindow = new AMap.InfoWindow({
isCustom: true,
closeWhenClickMap: true,