jeff.pace

feature Layer "load" event on firing

Discussion created by jeff.pace on Oct 8, 2013
Latest reply on Oct 8, 2013 by btfou
Trying to load 3 feature layers.  I have an array of urls

dojo.forEach(this.configData.redline, dojo.hitch(this, function(layer, idx){
                    var fLayer=new FeatureLayer(layer.url);
                    this.fLayerArray.push(fLayer);
                    alert('adding layer '+idx);
                    fLayer.on("load", function(evt){
                        alert('loaded');
                    });
                    fLayer.on("click", function(evt) {
                        alert('clicked');
                    });
                    map.addLayer(fLayer);
                 }));


Feature layers add to map fine
Display fine
Click event works fine
load event never fires.  Tried "Load" also (as in samples).  Nothing.

Help please?

Outcomes