SimpleMarkerSymbol with SVG path

1823
3
04-07-2013 09:40 PM
ArifBaig
New Contributor
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.
0 Kudos
3 Replies
AdityaVelala
New Contributor
am having the same problem. can anyone of you....please suggest how to fix this issue....
0 Kudos
ArifBaig
New Contributor
am having the same problem. can anyone of you....please suggest how to fix this issue....


any lunck Veladitya?
0 Kudos
derekswingley1
Frequent Contributor
It's a bug (NIM091468) that we've fixed for 3.5, which will be out shortly. You can test with http://serverapi.arcgisonline.com/jsapi/arcgis/3.5/
0 Kudos