out of the box draw widget for viewer 2.3.1

637
0
05-10-2011 01:31 PM
grahamcooke
Occasional Contributor
Hi,

I hope someone can help with a couple of questions I have. I took the previous version of the draw widget and removed the draw point functionality and replaced it with my own. My version allows the user to enter the coordinates of a point and then choose a buffer distance and plot the point as a cross with a circular buffer area.

I can get this to work in 2.3.1 BUT the labels do not appear correctly. Looking at the widget as it comes out of the box, it seems to get its label text from the Locale/en_us/viewerstrings.properties
text file.

I have tried to edit this and create my own labels as per the other controls on the widget, but I get compile errors saying the variables I have used cannot be found. Does anyone know where I am going wrong?

Also I wish to remove the functionality that clears the drawing layer if you close the widget. Whereabouts do I make this change in the new widget? Maybe I have just stared at the code for too long today, but I have no idea where to make the change so the drawing layer stays visible regardless of what you do to the widget.

Esri have done a great job with the snapping function and also the introduction of the edit tool, to move an delete vertices and rotate shapes. This will be exceptionally useful in my project for the other shapes I am generating. 🙂
Tags (2)
0 Kudos
0 Replies