I'm trying to change the display name of a layer in the Editor Widget and I can't get it to work.
I guess I'm doing something wrong but can't figure it out so any help would be appreciated!
Example code:
const ordersLayer = new FeatureLayer({
title: "New Title",
url: "myurl"
});
map.add(ordersLayer);
var editConfigMyLayer = {
layer: myfeatuelayer,
title: "New Name",
};
const editor = new Editor({
view: view,
// Pass in the configurations created above
layerInfos: [
editConfigMyLayer]
})
view.ui.add(editor, "bottom-right");