Select to view content in your preferred language

Converting PictureMarkerSymbol to Flex Icon Class

1601
2
03-12-2011 06:51 AM
MuthuGandi
New Contributor
Hii, I would like to convert ARCGIS PictureMarkerSymbol to flex icon:Class to be display at runtime.
Thanks, Muthu
Tags (2)
0 Kudos
2 Replies
DasaPaddock
Esri Regular Contributor
0 Kudos
andrewj_ca
Frequent Contributor
This is what I use:

var sym:SimpleMarkerSymbol = new SimpleMarkerSymbol("circle",11,0xFF0000,1,0,0,0,new SimpleLineSymbol("solid",0xFFFFFF,1,1));
var uic:UIComponent = sym.createSwatch(16,16);


The "uic" is what I use to show the icon.  This works for SimpleMarkerSymbol, PictureMarkerSymbol, SimpleLineSymbol, SimpleFillSymbol.......
0 Kudos