I created new feature layer from client side and added into map in experience builder developer edition.
Now I want to see the layer in table widget.
In web app builder, once we add the layer programmatically the attribute information will be displayed automatically. Not sure how to implement in experience builder
const activeViewChangeHandler = (jmv: JimuMapView) => {
if (jmv) {
setJimuMapView(jmv)
jmv.view.when(() => {
console.log("Map loaded");
setIsMapLoaded(true);
setLoading(false);
// Add sample graphic
const ptGraphic = new Graphic({
geometry: {
type: "point",
longitude: -118.805,
latitude: 34.027
},
attributes: {
Name: "Sample Point",
Description: "This is a sample description"
}
});
const layer = new FeatureLayer({
source: [ptGraphic],
fields