Select to view content in your preferred language

eDraw / text background

2481
12
Jump to solution
02-05-2013 06:35 AM
JasonStanton__GISP
Regular Contributor
Greetings,

I want to add a white background/halo to all text that is drawn (measurements and using "add text") inside the eDraw widget.  Can someone please help me with this?  I feel like it is probably easy if you know what you are doing, but I don't.

Any suggestions would be greatly appreciated.  Thanks!

Jason
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Jason,

  New version released:

Version 3.1.2 - 2/7/2013
* Includes all the standard draw widgets features that are new in the 3.1 release of the viewer.
* Added a halo option for text drawn on the map.
* Added more localization options for text used by this widget.

View solution in original post

0 Kudos
12 Replies
RobertScheitlin__GISP
MVP Emeritus
Jason,

  You need to be sure to post all widget and or viewer questions to the Flex Viewer forum and not the Flex API forum (I have moved it for you).

Actually it is not an easy task the TextSymbol class does not have a halo capability. As you can see in the docs:

http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/symbols/TextSymbol.html

The TextSymbol class can be extended as I have done in the UnderGroundWeather widget, to have a halo but making this change in the eDraw widget would require that extended class and replacing all the code in the widget that calls the OTB TextSymbol and relace it with the extended TextSymbol. This is something I will consider as an enhancement request for a future version though.
0 Kudos
JasonStanton__GISP
Regular Contributor
Robert,

Thanks (as always) for the prompt response.  I will take a look at the UnderGroundWeather widget too see if I can apply it to the eDraw widget and let you know how it goes.

Jason
0 Kudos
JasonStanton__GISP
Regular Contributor
Ya... I'm definitely not smart enough to figure that out.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jason,

  New version released:

Version 3.1.2 - 2/7/2013
* Includes all the standard draw widgets features that are new in the 3.1 release of the viewer.
* Added a halo option for text drawn on the map.
* Added more localization options for text used by this widget.
0 Kudos
JasonStanton__GISP
Regular Contributor
Robert,

You are the best!  Thank you very much for all of your work on these widgets and forums...it is greatly appreciated!!

Jason
0 Kudos
JasonStanton__GISP
Regular Contributor
Robert,

I noticed that the defaulttool option is no longer working and the code is missing from the mxml.  I couldn't figure out how to get this back working, is there any way that you can?

Jason
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jason,

   It will be back in version 3.1.3.
0 Kudos
JasonStanton__GISP
Regular Contributor
Excellent, I'll keep my eyes peeled
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jason,

   3.1.3 now available.

Version 3.1.3 - 2/10/2013
* Added back the default tool functionality that was not working in the 3.1.2 Version.
0 Kudos