AnsweredAssumed Answered

Incorrect work ArcGIS js api 4.10 hitTest

Question asked by catcherholms on Feb 12, 2019
Latest reply on Feb 12, 2019 by ubatsukh-esristaff

Sometimes in my project with live data method hitTest of MapView work incorrect.
I created example with incorrect work https://jsfiddle.net/catcherholms/4f69qck8/32/

But after patching hitTest method in views/2d/layers/graphics/GraphicStore.js it work correct.
Example with patching https://jsfiddle.net/catcherholms/x705em2L/17/

In examples after clicking on marker should be JavaScript alert.
In first example it isn`t working.

Question: Is correct way of my solution for resolving this issue?

About patch. In this example https://jsfiddle.net/catcherholms/x705em2L/17/ I pass bound property of element instead of aaBoundingRect. (98 line)

Outcomes