How can I draw custom shapes on Graphics layer?

427
2
10-04-2011 01:37 AM
omega_cancer
Occasional Contributor II
Hi everyone,

any clue, guidance or help would be appreciated, please bear with me as I am still struggling with Flex 4.

1. What is the simplest way to draw custom shapes using < s : path> on graphic layer. I had data for the already created.

2. How can I pass my own styles in SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_CIRCLE, 22, 0x009933) in place of STYLE_CIRCLE? I want to create my own styles so that I can explicitly use them there like STYLE_RECT. Can I pass my path data in any symbol like fillsymbol, linesymbol or markersymbol so that they draw the shape?

3. How can I extend these symbol classes so that I can use member functions and properties of these symbols + my MXML code?

I am using SFV 2.4. Thanks
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Omega Cancer,

   You need to look into the DrawTool unless you want to do all the work yourself...

http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tools/DrawTool.html
0 Kudos
omega_cancer
Occasional Contributor II
Omega Cancer,

   You need to look into the DrawTool unless you want to do all the work yourself...

http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/tools/DrawTool.html



Custom shapes mean I want to create more complex shapes like wavy lines and curves. BTW Thanks, I figured out. Geometry was the guy I was ignoring. Here is simplified version of my question http://forums.arcgis.com/threads/40936-Symbolized-curves-and-wavy-lines-in-SFV-2.4?p=138938#post1389...
0 Kudos