Select to view content in your preferred language

turning off the Draw tool tooltip

1982
4
Jump to solution
08-12-2013 07:35 AM
TobinCrain
Emerging Contributor
I know I can change the tooltip for a drawing tool by using something like this:

esri.bundle.toolbars.draw.addPoint = "Click to add point";

However, how can I turn off this functionality so that nothing is displayed as the user moves around on the map while adding a point?

Thanks,
Tobin
0 Kudos
1 Solution

Accepted Solutions
DianaBenedict
Frequent Contributor
I know I can change the tooltip for a drawing tool by using something like this:

esri.bundle.toolbars.draw.addPoint = "Click to add point";

However, how can I turn off this functionality so that nothing is displayed as the user moves around on the map while adding a point?

Thanks,
Tobin


You can specify showTooltips: false for the draw toolbar options both during NEW and when activating a tool.
https://developers.arcgis.com/en/javascript/jsapi/draw-amd.html#draw1

new Draw(map,options)

View solution in original post

0 Kudos
4 Replies
DianaBenedict
Frequent Contributor
I know I can change the tooltip for a drawing tool by using something like this:

esri.bundle.toolbars.draw.addPoint = "Click to add point";

However, how can I turn off this functionality so that nothing is displayed as the user moves around on the map while adding a point?

Thanks,
Tobin


You can specify showTooltips: false for the draw toolbar options both during NEW and when activating a tool.
https://developers.arcgis.com/en/javascript/jsapi/draw-amd.html#draw1

new Draw(map,options)
0 Kudos
TobinCrain
Emerging Contributor
Thanks Diana. I appreciate your help. Is there a way to turn off the tooltips for an individual tool, rather than for the entire toolbar?
0 Kudos
MarkHoover
Frequent Contributor
As Diana said, you can also do this when activating any given tool. 

activate(geometryType,options?)

That options object is configured in the same way as when creating a new Draw Toolbar, and has a showTooltips option that can be set to false.

https://developers.arcgis.com/en/javascript/jsapi/draw-amd.html#activate
0 Kudos
TobinCrain
Emerging Contributor
Thanks to you too Mark. Not only did I miss it in the Help once, but twice. Must be a Monday!!

Thanks again to both of you for your help.
0 Kudos