// 选中元素地图居中
loadModules(["esri/geometry/Point"], {
css: true,
}).then(([Point]) => {
let pt = new Point({
latitude: node.weidu,
longitude: node.jingdu,
});
var opts = {
duration: 1000,
};
if (this.view) {
this.view
.goTo({ target: pt, zoom: 18 }, opts)
.then(function () {
console.log("跳转完成");
})
.catch((err) => {
console.log(err);
});
}
});
04-14
569

01-25
2175
