I'm now able to select parcels and build a list of taxlots using the following code:
postCreate: function() {
console.log('ParcelSoils::postCreate');
this.inherited(arguments);
},
startup: function() {
console.log('ParcelSoils::startup');
var map = this.map;
var taxlotLayerId, taxlotLayer, taxlotList;
var highlightSymbol = new SimpleFillSymbol(
SimpleFillSymbol.STYLE_SOLID,
new SimpleLineSymbol(
SimpleLineSymbol.STYLE_SOLID,
new Color([255,0,0]), 3
),
new Color([125,125,125,0.35])
);
LayerInfos.getInstance(map, map.itemInfo).then(lang.hitch(function(operLayerInfos) {
operLayerInfos.getLayerInfoArray().forEach(function(layerInfo) {
if (layerInfo.title == 'MC Taxlot') {
taxlotLayerId = layerInfo.id;
console.log('Taxlot layer ID = ', taxlotLayerId)
}
});
}));
taxlotLayer = map.getLayer(taxlotLayerId);
taxlotList = [];
this.own(on(taxlotLayer, 'click', function(e) {
var taxlotString = esriLang.substitute(e.graphic.attributes, "${TAXLOT}");
var highlightGraphic = new Graphic(e.graphic.geometry, highlightSymbol);
map.graphics.add(highlightGraphic);
taxlotList.push(taxlotString);
console.log('Selection = ' + taxlotList);
}));
Now I need to figure out how to temporarily disable the Pop-up for the Taxlot layer...
Looking through the OTB widget code for that, but it is anything but self-explanatory.