Robert,
My apologies. What I meant was a comparison using the following:
1. 'jimu/dijit/FeatureSetChooserForMultipleLayers'
this.selectDijit = new FeatureSetChooserForMultipleLayers({
map: this.map,
updateSelection: true,
fullyWithin: 'wholly',
geoTypes: ['EXTENT']
});
This gives me the selection tool which can select multiple layers or so I think... correct me if I am wrong.
VS
2. "esri/toolbars/draw"
_initToolbar: function() {
toolBar = new Draw(this.map);
toolBar.on("draw-end", addGraphic);
// event delegation so a click handler is not
// needed for each individual button
on(dom.byId("info"), "click", function(evt) {
if (evt.target.id === "info") {
return;
}
var tool = evt.target.id.toLowerCase();
this.map.disableMapNavigation();
toolBar.activate(tool);
});
},
addGraphic: function(evt){
//deactivate the toolbar and clear existing graphics
toolBar.deavtivate();
this.map.enableMapNavigation();
// assigns a symbol to extent or polygon
var symbol;
if (evt.geometry.type === "EXTENT" || evt.geometry.type === "polygon") {
symbol = fillSymbol;
}
this.map.graphics.add(new Graphic(evt.geometry, symbol));
}
I will try to build my custom widget using the draw method. I was hoping to get away from clicking for options to draw. I just want to click on my widget, make my selection and have the results populate my table.