Select to view content in your preferred language

Help controlling size of the extended com.esri.ags.symbols.Symbol

589
0
10-16-2011 03:59 AM
omega_cancer
Frequent Contributor
I had extended the Symbol class and drew a circle and a line on sprite by overriding draw method like this:
sprite.x = toScreenX( map, mapPoint.x );
sprite.y = toScreenY( map, mapPoint.y );
sprite.graphics.beginFill( 0x0000FF,1 );
sprite.graphics.drawCircle(0,0,100);
sprite.graphics.endFill(); 
sprite.graphics.lineStyle(5,0xFF0000,1);
sprite.graphics.lineTo(mapPoint.x+100,mapPoint.y+100);

It works fine but when I zoom in it contracts the size and when I zoom out it expands. I want the symbol to retain the size as I drawn rather than contracting and expanding on zooming.

TestWidget.MXML and CustomizedSymbol.as are attached to be placed inside test package.

Any help would be greatly appreciated.
Thanks
Tags (2)
0 Kudos
0 Replies