I want to define another legend layer, but my legend is currently the following:
app.legend = new Legend({
map: app.map,
layerInfos: [{
title: app.supportLayer.name,
layer: app.supportLayer
}]
}, "legend");
app.legend.startup();my other layer name that I want to add is called: signLayer
How would I add another layer and title so I can see a list of both layers?
Solved! Go to Solution.
Chris,
Then it would look something like this:
app.legend = new Legend({
map: app.map,
layerInfos: [{
title: app.supportLayer.name,
layer: app.supportLayer
}, {
title: app.supportLayer2.name,
layer: app.supportLayer2
}]
Chris,
After the legend is already created or at creation time?
I want to load the sign layer at the same time I load the support layer so that both display as soon as the application displays.
Chris,
Then it would look something like this:
app.legend = new Legend({
map: app.map,
layerInfos: [{
title: app.supportLayer.name,
layer: app.supportLayer
}, {
title: app.supportLayer2.name,
layer: app.supportLayer2
}]
Awesome! Thanks again Robert Scheitlin, GISP