Select to view content in your preferred language

feature Layer

548
1
Jump to solution
05-22-2024 01:32 AM
emreaktas1
Regular Contributor

Hello
I want to change the names of the feature layers I captured via Enterprise.
Layers are shown with layerlist.
Can you help me change the names?

 

emreaktas1_0-1716366747242.png

 

0 Kudos
1 Solution

Accepted Solutions
Sage_Wall
Esri Contributor

Hi @emreaktas1 ,

All you need to do is set the title property on the feature layer.

 

const featureLayer = new FeatureLayer({
  url: "url to the feature service",
  title: "Whatever you want to name the layer"
})

 

View solution in original post

1 Reply
Sage_Wall
Esri Contributor

Hi @emreaktas1 ,

All you need to do is set the title property on the feature layer.

 

const featureLayer = new FeatureLayer({
  url: "url to the feature service",
  title: "Whatever you want to name the layer"
})