Closed slead closed 9 years ago
Adam, I think this is something you are going to have to work your LayerInfos magic on.
It looks like the Esri API likes to ignore the name you set in the initialization options for Feature Layers, opting to re-fetch it from the service when it gets loaded. I've tucked in a hotfix that overwrites the name when the layer's loaded with whatever's been defined in the config file.
I'm finding that the name specified for a feature layer is not sticking in the Layer List widget.
To reproduce, update the name of the sample Land Use feature layer under
C:\arcgis-web-appbuilder-1.0\server\apps\XXX\configs\LocalLayer\config_Local Layer Widget.json
and note that this is not used in the UI.I can see that
lOptions.id
is correctly set to the value from the config file, but this value isn't used in the Layer List widget (instead it seems to use the name from the REST API).This problem doesn't apply to Dynamic or Tiled layers.