This is something kind of puzzle me. Hope someone can help.
I have a queried feature set that I want to add to the map as a graphic layer.
I have a cope of codes that seems in the right scope with lang.hitch included in the function queryfeatures. but somehow I couldn't get rid of the this.map.addLayer(myGraphicLayer) with 'TypeError: this.map.addLayer is not a function error. I checked community. The error is most like caused by out of scope. But it seems it is not the issue. Thanks for you help.
-------------------------------------------------------------------------------------------------------------
layer.queryFeatures(featureQuery