AnsweredAssumed Answered

Get Graphic(s) at Click Location?

Question asked by t0ny on May 15, 2019
Latest reply on May 15, 2019 by t0ny

Hi

 

If I have a GraphicsLayer with say 3 graphics added to it that overlap is there a way from a click on the overlap area to return all three graphics?

 

I started with view.hitTest(), but this only returns the topmost graphic, not all graphics under the click.


I then looked at layerView.queryFeatures() but the promise never occurs so I wonder if this does work with a Graphics Layer?

So basically, using v4 is there a way to get all graphics from a single Graphics Layer that intersect a point (cliick).

Many Thanks,

Outcomes