| onDigitizedRectangle |
|
onDigitizedRectangle map, anchorPt, endPt
This event is fired when the user has finished digitizing a rectangle. It is initiated by a call to digitizeRectangle.
This topic describes this event for ActiveX Control. For Plug-In and Java Edition, see MGDigitizeRectangleObserver.onDigitizedRectangle.
ActiveX Control only
map - The map object for which the event occurred.
anchorPt - The MGPoint object containing the longitude and latitude of the digitized rectangle's starting (anchor) point.
endPt - The MGPoint object containing the longitude and latitude of the digitized rectangle's ending point.
none
To handle this event from the Autodesk MapGuide ActiveX Control, define the following VBScript and JavaScript functions:
<!--
The VBScript function handles the event from the ActiveX Control
Control and then passes it to the JavaScript function.
-->
<SCRIPT LANGUAGE="VBScript">
Sub ObjectId_onDigitizedRectangle(map, anchorPt, endPt)
onDigitizedRectangle map, anchorPt, endPt
End Sub
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
function onDigitizedRectangle(map, anchorPt, endPt)
{
// event handling code here...
}
</SCRIPT>
Where ObjectId is the ID of the embedded map specified as part of the HTML OBJECT tag. Refer to "Displaying Maps" in the Autodesk MapGuide Developer's Guide for details on how to embed the ActiveX Control using the OBJECT tag.