Solved! Go to Solution.
Just to clarify, after implementing your atIndex solution the behavior is exactly the same, as always, the graphic draws when using the streets basemap, and does not draw when using the world imagery basemap
I then draw a graphic, a blue simple marker symbol, on user input. However, if i switch to http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer as my basemap, the graphic no longer draws. Is there something with the imagery layer where you cannot draw graphics on it? The only change I make to my code that results in the graphic not being drawn is changing the URL of the basemap.
Later in the application, on user input, graphics are added to the graphics layer via the addGraphics method. if the above URL for the tiled layer is changed to: http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer, the street basemap, then the graphic is added to the graphics layer and appears as it should.
To further complicate things, After I added the graphic in the World_Imagery situation, I tried removing the World Imagery layer to see if the graphic was behind it, but, when I remove that layer, i am left with nothing but the black screen with the checker-box pattern on it.
Just to clarify, after implementing your atIndex solution the behavior is exactly the same, as always, the graphic draws when using the streets basemap, and does not draw when using the world imagery basemap