MGMap.digitizeLine   Go to object model Go to parent topic Go to previous topic Go to next topic

Syntax

ActiveX Control: boolean digitizeLine()

Plug-In/Java Edition: boolean digitizeLine(MGDigitizePolylineObserverEx observer)

Description

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.

Parameters

observer - A Java object that implements MGDigitizePolylineObserverEx (Plug-In and Java Edition only).

Returns

boolean - Returns True if successful; otherwise, returns False.

Error Codes

-1 (busy)

See Also

onDigitizedPolyline