I am adding the feature layer, which is a part of a Web Scene in ArcGIS API for JavaScript 4.22 and giving the symbology but it is not coming and all layers are coming in same default color how to resolve this issue. Any suggestions are welcome.
The sample code:
const buffer20m = {
type: "polygon", // autocasts as new SimpleRenderer()
symbol: {
type: "simple-fill",
color: [151, 151, 204, 0.5],
style: "solid",
outline: {
color: "white",
width: 1
}
}
};
const buffer_20m = new FeatureLayer({
url: "https://********/*********/arcgis/rest/services/Buffer*****_Electric_Transmission_Lines_shp1/FeatureServer" I have also added one screensho,
renderer: buffer20m,
outFields: ["*"],
});
I have also added one screenshot as attachment