Hi,
I'm trying to create FetureLayer using client-side graphics. here is my code;
var layer= new FeatureLayer({
source: graphics,
objectIdField: 'objectid',
fields: [{ name: "objectid", type: "string" }],
popupEnabled: true,
popupTemplate: { content: "<div>Test Popup</div>" },
renderer: {
type: 'simple',
symbol:{
type: "simple-fill",
color: [ 51,51, 204, 0.9 ],
style: "solid",
outline: { color: "white", width: 1 }
},
},
editingEnabled: false,
});
map.add(layer);
I can add layer to map but it is not show on map.I'm trying to run layer.load() function but function promise is definitely not resolved or reject.Featurelayer loadStatus property stay as 'loading'.
Is there anyone who can help me?
Thanks