Select to view content in your preferred language

Draw widget (sfv 2.1) - issue with changing default behaviour

533
2
02-24-2011 06:20 AM
grahamcooke
Regular Contributor
I have changed the functionality of the point option on the out of the box draw widget. My users want to enter an x/y point in a textbox and then optionally a buffer distance so that a point is plotted and then buffered by the chosen distance. I've got this working fine, but I cannot switch off the functionality whereby if you select the point option and move the mouse over the map, you get a pointer icon with a label saying "click to add a point". I have added an option in the right click context menu for the user to get eastings and northings of the point they click at, but when I select the point option in the draw widget, I cannot see this until I have plotted a point (drawn a black circle by clicking the map - as per the default behaviour)

Does anyone know how I remove this behaviour, so that I can just right click the map to get coords and remove the label on the mousepointer when the draw point option is clicked on the draw widget please?

I searched the whole project (find in files) for "click to add a point" and nothing comes up, so i have no idea where this is being set!

hope someone can help, thanks in advance.
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Graham,

   The "click to add a point" is part of the DrawTool in the MapManager that the DrawWidget uses. If you don't want those tips than you have to set showDrawTips to false on the DrawTool in the Map Manager.

Be sure to post to the FlexViewer forum when you are asking questions concerning the Flex Viewer.
http://forums.arcgis.com/forums/111-ArcGIS-Viewer-for-Flex
0 Kudos
grahamcooke
Regular Contributor
Robert,

As always, thanks for your help. Got this sorted.
0 Kudos