thebillcarr

Content Pane

Discussion created by thebillcarr on May 19, 2014
Latest reply on May 20, 2014 by thebillcarr
I'm trying to figure out how to get the editor template to load only one layer into a content pane.

It was suggest that I change the array to filter:

var templateLayers = arrayUtils.map(evt.layers, function(result){
            return result.layer;


to:

var templateLayers = arrayUtils.filter(evt.layers, function(result){
                        return result.layer.id == "id of layer you want";
                    });


I have had no luck thus far getting it to pull any layers... Any ideas?

Outcomes