This commit is contained in:
BianLzhaoMin 2025-04-30 13:43:40 +08:00
parent fc1ab595e1
commit 8c6904d538
1 changed files with 11 additions and 10 deletions

View File

@ -266,6 +266,17 @@ function initMap() {
});
} else {
map.setMapType(BMAP_NORMAL_MAP); // 普通模式
// 增加不是纯白的背景色
map.setMapStyleV2({
styleJson: [
{
featureType: "background",
elementType: "all",
stylers: { color: "#f5f5f5" },
},
],
});
}
if (isMap) {
@ -274,16 +285,6 @@ function initMap() {
});
}
// 添加地图控件(可选)
// map.addControl(new BMapGL.NavigationControl());
// map.addControl(new BMapGL.ScaleControl());
// 地图加载完成后添加标点和折线
// map.addEventListener("tilesloaded", function () {
// addAllMapPoints();
// addMapLine();
// });
setTimeout(() => {
addAllMapPoints();
addMapLine();