Symbolized curves and wavy lines in SFV 2.4

1416
5
10-05-2011 01:39 AM
omega_cancer
Occasional Contributor II
Hi everyone,
How can I create curves (can be filled ones) and wavy lines using Flexviewer.
I want to use them as symbols like line linesymbol or cartographicLine symbol.

Thanks in advance.
Tags (2)
0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus
Omega Cancer,

  First thing is you are posting to the wrong forum. You need to post Flex Viewer (no longer SFV or Sample Flex Viewer) to the Flex Viewer forum.

http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex

There is the draw widget in the Flex Viewer that allows for free hand lines and polygons, so I still don't think you are giving enough info for your question. Are you asking more about applying complex cartographic line symbols or about how to draw geometries in code?
0 Kudos
omega_cancer
Occasional Contributor II
Omega Cancer,

  First thing is you are posting to the wrong forum. You need to post Flex Viewer (no longer SFV or Sample Flex Viewer) to the Flex Viewer forum.

http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex

There is the draw widget in the Flex Viewer that allows for free hand lines and polygons, so I still don't think you are giving enough info for your question. Are you asking more about applying complex cartographic line symbols or about how to draw geometries in code?


Sorry for the posting on wrong forum.
Just guidance needed, I want to draw curves on graphics layer and put them in any symbol it can be lineSymbol, FillSymbol or any symbol. The reason for creating them as symbol is I want to group them in a composite symbol so that they can be treated as a group and applied further transformations and save them.

I had created a curve like
private var myGraphic:Graphic = new Graphic();
.
.
myGraphic.graphics.curveTo(n,n,n,n);
graphicsLayer.add(myGraphic);

but than I am not able to put it in a symbol neither find its geometry so that I can pass that geometry to other symbol to draw that geometry for me.

Thanks
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Omega Cancer,

   What you are attempting to do is draw a curve on the graphics sprite that all UIComponents inherit. That is not going to work the way you want it to. In you code you create a new com.esri.ags.Graphic, to actually have that graphic draw in map coordinates you will need to set it's geometry property to some actual com.esri.ags.geometry object like a Polygon. Polygons and Polylines are made up of Rings or Paths which are just point arrays. I don't know of any true curve capability in the AGS Flex API.
0 Kudos
omega_cancer
Occasional Contributor II
Omega Cancer,

   What you are attempting to do is draw a curve on the graphics sprite that all UIComponents inherit. That is not going to work the way you want it to. In you code you create a new com.esri.ags.Graphic, to actually have that graphic draw in map coordinates you will need to set it's geometry property to some actual com.esri.ags.geometry object like a Polygon. Polygons and Polylines are made up of Rings or Paths which are just point arrays. I don't know of any true curve capability in the AGS Flex API.


Thank you very much, although it did not solved my problem but thanks again for your precious time.
0 Kudos
IanWatkins
New Contributor
Omega_Cancer,

Not sure 100% what it is you need, but you may find the following links useful. Not exactly what you desire but it is a start. I haven't yet used it in anger myself on an ESRI map, but plan to in the near future.

Main page: http://code.google.com/p/flexiweather/

Demo of curves/symbols: https://ogcie.iblsoft.com/FlexiWeather/trunk/Examples/Example2.swf

Of course, if ESRI would like to add this kind of capability to the ESRI Flex API, that would be great 😉

Cheers

Ian
0 Kudos