Select to view content in your preferred language

Enhanced Draw Widget Default Colors

2195
5
07-14-2010 12:59 PM
JayGeisen
Regular Contributor
Hi,

I was wondering if anyone knows where you can change the default draw and label colors in Robert Scheitlin's Enhanced Draw Widget?

Thanks,
Jay
Tags (2)
5 Replies
TonyCollins
Regular Contributor
Can't you use selectedColor on the ColorPickers?

Hi,

I was wondering if anyone knows where you can change the default draw and label colors in Robert Scheitlin's Enhanced Draw Widget?

Thanks,
Jay
0 Kudos
JayGeisen
Regular Contributor
Tony, could you elaborate a bit please?  Is there somewhere in the code that the defaults can be changed from black (000000) to, say, red?  I know you can use the color picker when you're in the application, but I'm trying to change the defaults. 

I've noticed there are two lines in the addGras function that specify colors, but changing the values (to, say, FF0000) does not seem to make any difference.  The lines are below:

var symColor:Number = 0x000000;
var symColor2:Number = 0x000000;

Thanks,
Jay
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jay,

   Just look in the DrawWidget mxml code and find the mx:ColorPicker 's and set their SelectedColor attribute to the default that you want like Tony said.
JayGeisen
Regular Contributor
Thanks guys - worked a charm!
0 Kudos
jerrysalinas
Deactivated User
Hi,
I am having a similar issue...

I've just noticed the labeling for the measurements no longer display when using the measurement tools. I've recently changed my mapping application from using dynamic services to tiled services. Also, the draw circle tool does not draw at all. I am using 26914 as my UTM WKID. I can draw lines, rectangles, polygons, etc.....but it does not display the measurements when I check the checkbox, "show measurements".

I did fix the issue with the circle being drawn, but no lables are visible regarding measurements

Thanks

***I solved this issue by re-arranging the my basemaps. I guess it had to do with the spatial ref
0 Kudos