Hi again -
In prep for the upcoming layer list widget, I am setting up a legend widget:
var legend = new Legend({ view: view, layerInfos: [{ layer: lyrEnvBnds, title: "Environmental" }, { layer: lyrFacBnds, title: "Facilities" }, { layer: lyrMobBnds, title: "Transportation" }, { layer: lyrUtilBnds, title: "Utilities" }] });
very straighforward, except each layer in the array has been filtered with a defintion expression. What happens is the title is then not honored, even though the consol log for the legend widget clearly shows the title in the array:
something similar happened with the layer list at the 3.14 ( I think) release where the title param wasn't being passed to the dom node to display the title correctly in the layer list - ideas?
Thanks
David
Solved! Go to Solution.
It is a known issue at 4.0. Should not be a problem at 4.1.
It is a known issue at 4.0. Should not be a problem at 4.1.
Thanks Undral-