askew

Type error: Graphis is null

Discussion created by askew on Oct 23, 2012
Latest reply on Oct 25, 2012 by geos_rfleet
I added a base layer with spatial reference 102100. When I try to add a point and a symbol to it, it throws an error at
map.graphics.add - graphics is null. Here is my code

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);

Firebug shows label holds the pt and sms values. What could be causing the issue?

Outcomes