| MGMap.digitizeLine |
|
ActiveX Control: boolean digitizeLine()
Plug-In/Java Edition: boolean digitizeLine(MGDigitizePolylineObserverEx observer)
Enables the user to draw a line on the map by clicking and dragging the mouse.
It then fires the onDigitizedPolyline event upon completion. This method does not perform any functions other than sending the line coordinates to onDigitizedPolyline.
For Autodesk MapGuide Viewer Plug-In and Java Edition, the observer parameter specifies the object that either handles the event or forwards it back to JavaScript.
Note that this method does not work during a busy state. For additional information about the busy state, refer to "Handling Busy State and Map Refresh" chapter in the Autodesk MapGuide Developer's Guide.
observer - A Java object that implements MGDigitizePolylineObserverEx (Plug-In and Java Edition only).
boolean - Returns True if successful; otherwise, returns False.
-1 (busy)