Please tell me how can determine it not initially, but dynamically, for example, by choosing from a list of all possible values that I know. Not as shown in the code const layer= new WMSLayer({
url: "MyGeoserverUrl",
sublayers: [{ name: "World" }],
}); This is very understandable. The question is whether it is possible to change this property on the go by choosing any value from the built interface. For example, there are such layers list {"World","Name1","Name2"}. When i choose "Name2" So write like this layer.sublayers = ... //code.
There was already a similar topic, but no one could give a clear answer. Apparently no one knows. Although I saw an example in the documentation that they write this way in the code. But the code doesn't work at all! I am using Angular.
And in addition, a very important question on the same topic. There is such a great example Learn how to change the basemap layer in a map. https://developers.arcgis.com/javascript/latest/change-the-basemap-layer/#create-a-new-pen
Is it even possible to do something similar for 3D WMSLayer?
I beg you, thank you very much and I really hope that someone knows and answers, please!