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:


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 ?


i had a ton of problems some require inconsistency , some bad syntax but mostly used 3.x function instead of 4.x. codepen.io/segev-salman/pen/rgmaGr

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.