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.
-------------------------------------------------------------------------------------------------------------
Solved! Go to Solution.
Hi KenBuja,
That did remove the error. So it is the top of the function that is way back up that needs a LANG.HITCH. It has two three nested functions. Thanks again