// polygon
const polygonGraphic = new Graphic()
polygonGraphic.geometry = {
type: 'polygon',
rings: [
[117.227239, 31.820586],
[116.227239, 33.820586],
[117.227239, 33.820586]
]
}
polygonGraphic.symbol = new SimpleFillSymbol({
color: '#ff0000',
outline: {
color: '#ffff00',
width: 3
},
style: 'solid'
})
// GraphicsLayer
const layer = new GraphicsLayer({
id: '123456',
graphics: [polygonGraphic]
})
window.customMap.map.add(layer)
标签:---,layer,const,polygon,color,js4,arcgis,polygonGraphic,new
From: https://blog.csdn.net/QDxin_xyz/article/details/139535399