加载百度地图之后 中心为位置有点偏移

//解决位置偏移
var
loadCount = 1; map.addEventListener("tilesloaded",function() { if (loadCount == 1) { map.setCenter(point); } loadCount = loadCount + 20; })

 

var loadCount = 1;
map.addEventListener("tilesloaded",function() {
if (loadCount == 1) {
map.setCenter(point);
}
loadCount = loadCount + 20;
})

转载于:https://www.cnblogs.com/wcnwcn/p/9959204.html

你可能感兴趣的:(加载百度地图之后 中心为位置有点偏移)