Esri / arcgis-viewer-flex

Source code for ArcGIS Viewer for Flex - a great application framework for web applications.
http://links.esri.com/flexviewer
Apache License 2.0
134 stars 151 forks source link

Set tooltips using setMapAction #240

Closed rscheitlin closed 10 years ago

rscheitlin commented 10 years ago

There needs to be a way for developers to use the new ability to set custom draw tooltip (toolTipPoint, toolTipPolyContinue, etc) text using the setMapAction or some other way.

jcfranco commented 10 years ago

@MehulChoksey – Ready for verification.

This updates BaseWidget's setMapAction() to allow users to configure their custom draw tooltip labels:

var customDrawTooltips:DrawTooltips = new DrawTooltips(
                                          "point tooltip",
                                          "multipoint start tooltip",
                                          "multipoint end tooltip",
                                          "polygon start tooltip",
                                          "polygon continue tooltip",
                                          "polygon end tooltip",
                                          "start-and-let-go (freehand) tooltip"
                                        );

...

setMapAction(drawType, drawStatus, null, map_drawEndHandler, null, true, false, drawTooltips);

DrawTooltips serves to avoid additional clutter to setMapAction().