If you need to display the marker lat/lon the easiest way is to include the lat and lon fields in the query outfields array. If you haven't these fields in the attribute table of your layer you can calculate them in arcmap.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.