arcgis js api 中通过坐标定位
根据坐标定位到当前位置 并且放大倍数
let graphic = new Graphic({
geometry: geometry, // Add the geometry created in step 4
symbol: symbol // Add the symbol created in step 5
//attributes: lineAtt // Add the attributes created in step 6
});
//定位
this._view.goTo({
center: geometry,
zoom: 12
},2000)
view.graphics.add(graphic);
官网示例