My apps need to figure out the top-most feature under the mouse pointer, so the latest hitTest update has required me to fiddle around with things. The documentation doesn't mention anything about the order of HitTestResults in the array (or I'm blind, it happens lol ).
Doing some console logging, I think I see the pattern but want to clarify (and request the documentation be updated).
It appears to me the graphics in the result array are order by layers, top-most to bottom-most, but graphics belonging to the same layer are ordered bottom-most to top-most.
So for example, if I have a pile of overlapping features from layers BL (bottom layer) and TL (top layer), my result array of graphics looks something like
[ TL_lowest, TL_middle, TL_highest, BL_lowest, BL_highest ]
Can anyone in the know confirm? Much obliged.