AnsweredAssumed Answered

Building a dynamic querytask 4.11

Question asked by segseg12 on May 15, 2019
Latest reply on May 19, 2019 by rscheitlin

.Learning the js api i tried to make a querytask that will query a layer and update graphics on change

.I think the problem is in my success("succ") function

:I made this codepen

https://codepen.io/segev-salman/pen/joBwyW 

 

in the 3.28 version of the api I saw a code example building an array and a for loop inserting features into a graphic from the querytask reault, but the 4.11 doc says that querytask returns a graphic so does that mean i can throw the result straight into a new graphic layers ? 

Outcomes