JS API 4.8代码问题

创建(实例化)一个FeatureLayer时遇到了一句代码 outFields:["*"],请问这是什么意思,它起到的效果是什么?

JS代码问题.JPG

 
已邀请:

swaggyP - 网络粉刷匠

赞同来自: wangmengdx

An array of field names from the service to include in the FeatureLayer. If not specified, the layer will only return the OBJECTIDfield. To fetch the values from all fields in the layer, use ["*"]. This is particularly useful when editing features.
API文档中都有解释的呀,

要回复问题请先登录注册