Options
sourceLayer
string required
Only valid for vector layers, used to set the data source of vector layers.
🌟 Generally, there are multiple layers of data in the data returned by the vector service, and we need to select from them.
const layer = new PointLayer({
sourceLayer: 'city',
});
featureId
string optional *default:*automatic numbering
Only vector layers take effect, used to specify the encoding of vector layers.id。
🌟 EncodingidUsed when a layer is highlighted.
const layer = new PointLayer({
featureId: 'id',
});