I'm writing a custom widget to select one or more parcels. Using the code from Custom Widget for Selecting a Parcel, I am able to disable the popup and add a graphic for the selected parcel(s):
| | startup: function() { |
| | // this.inherited(arguments); |
| | // this.mapIdNode.innerHTML = 'map id:' + this.map.id; |
| | console.log('startup'); |
| | var map = this.map; |
| | var parcelLayerId, parcelLayer, parcelList; |
| | 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(layerInfosObject) { |
| | layerInfosObject.getLayerInfoArray().forEach(function(layerInfo) { |
| | console.log(layerInfo.title); |
| | if (layerInfo.title == 'Search - Parcels') { |