Thanks Stevel. I tried that as well, still it was giving me the same error. Any thoughts?
The graphics object is available to use after the Map.onLoad event.
dojo.connect(map, "onLoad", function() { var pt= new esri.geometry.Point(x,y,sr); var sms= new esri.symbol.SimpleMarkerSymbol(...); var label = new esri.Graphic(pt,sms); map.graphics.add(label); });
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.