Closed rscheitlin closed 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()
.
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.