APP nvue:v3模式下 map设置中心点不生效,即 moveToLocation
微信小程序:正常
</map>
const mapCtx = uni.createMapContext('map', this);
mapCtx.moveToLocation({
latitude: newValue[selectedDevice.selected].latitude,
longitude: newValue[selectedDevice.selected].longitude,
success: () => {
console.log("地图中心点变化了")
},
fail: (e) => {
console.log(e);
console.log("moveToLocation移动失败!");
},
complete:() => {
console.log("moveToLocation移动");
}
});
0 个回复