Replace double click of last vertex with a Button click in Draw.POLYLINE

624
4
04-02-2013 07:56 AM
MiriEshel
New Contributor III
Hi all,

I'm using esri.toolbars.Draw.POLYLINE and I want to replace the way I sketch the last vertex of the polyline: Instead of using Double click to finish sketching, I want to click on a button.

Is it possible and how?

Thanks a lot,
Miri
0 Kudos
4 Replies
MarcusBush
New Contributor
How would you click the button without dragging your last polyline off of the drawing area?
0 Kudos
BrettGreenfield__DNR_
Occasional Contributor II
I'm guessing the idea is to click a button and the polyline will be entered with the last vertex created as the final vertex.

Can you use the finishDrawing() method?  Create a button and have clicking it call a function that executes drawToolbar.finishDrawing();
0 Kudos
MiriEshel
New Contributor III
Hi Brett,

Thank you for your reply.

It works great!

Thanks,
Miri
0 Kudos
MiriEshel
New Contributor III
Hi,

Maybe somebody knows how to undo the last point when sketching a PolyLine with the Draw toolbar?
I prefer using the Draw toolbar instead of the Editor object with FeatureLayer.

Thanks a lot,
Miri
0 Kudos