ari_baig

SimpleMarkerSymbol with SVG path

Discussion created by ari_baig on Apr 7, 2013
Latest reply on May 15, 2013 by DSwingley-esristaff
Simplemarkersymbol with SVG path placing the marker at wrong position on the map after angle is set.

here is my code:
var path = "m0,35l28,0l-11.08333,-35l-7.58333,0.58333l-9.33333,34.41667z";
var directionSymbol = new esri.symbol.SimpleMarkerSymbol();
directionSymbol.setPath(path);
directionSymbol.setColor(new dojo.Color([255, 0, 0, 0.4]));
directionSymbol.setOffset(0, -14)
directionSymbol.setOutline(new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255, 255, 255]), 1));
//directionSymbol.setAngle(25);

when angle is set then the markers position move to un-expected location.

Outcomes