arcgis for js鍒涘缓闅忓湴鍥剧缉鏀剧殑鐐?/a>
Posted 鍙嬩汉A
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了arcgis for js鍒涘缓闅忓湴鍥剧缉鏀剧殑鐐?/a>相关的知识,希望对你有一定的参考价值。
鎬濊矾锛?br>鍥惧眰浼氳窡闅忓湴鍥剧缉鏀撅紝鎵€浠ュ垱寤轰竴涓渾鏀捐繘鑷畾涔夋覆鏌撳浘灞?br>浠g爜瀹炵幇锛?br>寮曞叆浜嗗洓涓寘锛岃繖涓紩鍖呮柟寮忓彲浠ョ湅鐪嬩箣鍓嶇殑鏂囩珷锛堝拰proxy鍒濇缁撳悎锛?br>GraphicsLayer銆丼impleFillSymbol銆丟raphic銆丆ircle
鍘熶綔鑰?a href="https://segmentfault.com/u/yourena_5d7207ca8f870">馃憠馃憠馃憠
https://segmentfault.com/u/yo...
const GraphicsLayer = await arcgisPackage.GraphicsLayer;
const SimpleFillSymbol = await arcgisPackage.SimpleFillSymbol;
const Graphic = await arcgisPackage.Graphic;
const Circle = await arcgisPackage.Circle;
let graphicCirCle = new GraphicsLayer();
var symbol = {
color: [255, 85, 0, 0.9],
style: "solid",
outline: {
color: [255, 85, 0, 0.9],
width: 1,
},
};
var circle = new Circle({
center: [i.lon, i.lat], //涓績鐐瑰潗鏍囧氨鏄?[缁忓害,绾害]
numberOfPoints: 80, //娌垮渾寮ф洸绾跨殑鐐规暟
geodesic: true, //涓嶈€冭檻鍦板舰鍥犵礌
radius: 100, //鍗婂緞鍗曚綅M
});
var sfs = new SimpleFillSymbol(symbol);
graphicCirCle.add(new Graphic(circle, sfs));
map.add(graphicCirCle)
以上是关于arcgis for js鍒涘缓闅忓湴鍥剧缉鏀剧殑鐐?/a>的主要内容,如果未能解决你的问题,请参考以下文章