arcgis轨迹路线

轨迹路线

 let paths = [
     [
         [-111.3, 52.68],
         [-98, 49.5],
         [-93.94, 29.89]
     ]
 ]
 let polyline = {
     type: "polyline",
     paths: paths,
     spatialReference: view.spatialReference //设置坐标系
 };
 let lineSymbol = {
     type: "simple-line",
     color: [226, 119, 40],
     width: 4
 };
 let polylineGraphic = new Graphic({
     geometry: polyline,
     symbol: lineSymbol,
     spatialReference: view.spatialReference //设置坐标系
 });
 view.graphics.addMany([polylineGraphic]);

新增点

let point = {
    type: "point",  
    longitude: -49.97,
    latitude: 41.73,
    spatialReference: view.spatialReference //设置坐标系
};
let markerSymbol = {
    type: "simple-marker",  
    color: [226, 119, 40],
    outline: {
        color: [255, 255, 255],
        width: 2
    }
};
let pointGraphic = new Graphic({
    geometry: point,
    symbol: markerSymbol,
    spatialReference: view.spatialReference //设置坐标系
});
 view.graphics.addMany([pointGraphic]);
  • 2
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值