Quantcast
Channel: Forums - ArcGIS Viewer for Flex
Viewing all articles
Browse latest Browse all 2097

Advanced Draw - incorporate into 3.0 flexViewer

$
0
0
Hi guys,

Hopefully someone can help me out...

I am currently trying to integrate the Advanced Draw Widget v2.4 (http://www.arcgis.com/home/item.html...3b7870acb9953f) into the v3.0 flexViewer.

I have tested out the new eDraw widget for v3.0 but the previous Advanced Draw is more suitable for our needs, as it allows us to include useful templates.

I have a coding question relating to a change from 2.5 to 3.0 - specifically to do with the change to the TextSymbol constructor:
"The TextSymbol constructor now takes an alpha value as its fourth parameter. If you were using the TextSymbol constructor with more than three parameters, you need to adjust accordingly."

Therefore the current code is giving me a couple of errors. The current lines are:

sym = _graphic.symbol as TextSymbol;
newSym = new TextSymbol(this.text,sym.htmlText,sym.color,sym.border,sym.borderColor,sym.background,sym.backgroundColor);

and this couses two errors:

1067: Implicit coercion of a value of type Boolean to an unrelated type Number.
1067: Implicit coercion of a value of type Boolean to an unrelated type uint.

If i limit the TextSymbol method to only include the first 3 parameters, the errors disappear, but the functionality is broken; when crawing polygons or line graphics, no measurement labels for area and length are visible.

I would be grateful if anyone has come across this and updated the code..?

Kind Regards,


Caroline

Viewing all articles
Browse latest Browse all 2097

Trending Articles