Hi,
I am customizing the default WAB Query widget. I am trying to display the resulting layer as a ClusterLayer, instead of a FeatureLayer. To do so, I am using the ClusterLayer.js file from the Summary widget.
The Query widget's Widget.js file creates the query's returned FL in the _createNewResultLayer function like so:
resultLayer <SPAN class="operator token">=</SPAN> <SPAN class="keyword token">new</SPAN> <SPAN class="token class-name">FeatureLayer</SPAN><SPAN class="punctuation token">(</SPAN>featureCollection<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">;</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
I commented this out, and replaced it with: