Is this now possible with the 3.5 API...?
We can change DrawTool tooltip as per our requirement(Replacing default tooltip).I finished this as follows,step 1: set property showDrawTips = "false" for u r DrawTool.step 2: Handle the following method on mouseMove event of esrp Map. private var myToolTip:ToolTip; protected function showCursorToolTip(event:MouseEvent):void { if(myToolTip==null) { myToolTip = ToolTipManager.createToolTip("<Your custom tool tip>", stage.mouseX, stage.mouseY) as ToolTip; } if(myToolTip !=null) { if(stage != null) { myToolTip.x=stage.mouseX; myToolTip.y=stage.mouseY; } } }step 3: destroy this tool tip where ever u want(Usually we can destroy on DrawTool end handler). like as follows. ToolTipManager.destroyToolTip(myToolTip); myToolTip=null;I hope this helps to guys.
@Robert, we have this as an enhancement request. Not sure yet if it's going to make it in to version 2.2 or not.
I would like to see the tooltip customizable for more than just internationalization. I would like to add different text based on my custom action I am using the drawtool for.
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.