I built a map with several feature layers (points and lines) and a single graphics layer. When the graphics layer is empty I can easily click on the points and view attributes in the popup template. The popup template is set when the feature layer is declared and it all works as it should.
The problem is when the graphics layer is populated and the graphic overlaps the feature layer points. Then the popup displays with a blank results because it's querying against a graphic that doesn't have attributes. I need to clear the graphics from the graphics layer in order to successfully view the popups again.
I've read in this forum that the graphics layer is always on top. Is that true? If it is, what approach to I need to take to prevent a popup on a graphic in a graphics layer, but allow popups for feature layers?