var default_sym:SimpleMarkerSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_CIRCLE,16,0xE98300,1,0,0,0,new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID,0x333333)); var hitSym:SimpleMarkerSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_SQUARE,hitSize,0xE98300,0); var compSym:CompositeSymbol = new CompositeSymbol(); compSym.symbols = [hitSym,default_sym]; g.symbol = compSym;
var pms:PictureMarkerSymbol = new PictureMarkerSymbol(source, pixelSize, pixelSize); var hitSym:SimpleMarkerSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_SQUARE,hitSize,0xE98300,0); var compSym:CompositeSymbol = new CompositeSymbol(); compSym.symbols = [hitSym,pms]; g.symbol = compSym;
var pms:PictureMarkerSymbol = new PictureMarkerSymbol(source, pixelSize, pixelSize); g.symbol = pms;
Solved! Go to Solution.
var pixelSize:int = 20; var hitSize:int = 30; var hitAlpha:Number = .5; var pms:PictureMarkerSymbol = new PictureMarkerSymbol(source, pixelSize, pixelSize); var hitSym:SimpleMarkerSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_SQUARE,hitSize,0xE98300,hitAlpha); var compSym:CompositeSymbol = new CompositeSymbol(); compSym.symbols = [pms,hitSym]; g.symbol = compSym;
[Embed('assets/images/globe.png')] var picEmbeddedClass:Class; var pms:PictureMarkerSymbol = new PictureMarkerSymbol(picEmbeddedClass, 20, 20);