akashmagoon

Change Color of Marker

Discussion created by akashmagoon on Jun 24, 2012
Latest reply on Jun 24, 2012 by rahul_m
I have a marker with the code below..

How can i change the color to red


var sms = new esri.symbol.SimpleMarkerSymbol();
var infoTemplate = new esri.InfoTemplate("Bob","Lives in the USA");
var graphic = new esri.Graphic(wm_mp, sms, '', infoTemplate);
map.graphics.add(graphic);

var points = {
"points": [[85,45.51],[-5,45.51],[45,45.55],[20,45.00],[20,19]],
"spatialReference": ({ "wkid": 4326 })
};
var mp = new esri.geometry.Multipoint(points);
var wm_mp = esri.geometry.geographicToWebMercator(mp);

Outcomes