onViewedDistanceEx map, totalDistance, distances, units, useMcs
This event is fired when a user has finished viewing distances.
This topic describes this event for ActiveX Control. For Plug-In and Java Edition, see MGViewDistanceExObserver.onViewedDistanceEx.
Note that the event is fired only if the distances were measured using the viewDistanceEx method. If the distances were measured using the viewDistance method (or the user interface menu commands), onViewedDistance is fired instead.
ActiveX Control only
map - The MGMap object for which the event occurred
totalDistance - The total distance viewed.
distances - An MGCollection object containing type-double objects representing all the sub-distances.
points - An MGCollection containing MGPoint objects representing all the points used in the view distance action; the points will be in MCS or lat/lon coordinates, based on the setting of useMcs.
units - The units used to quantify the distance.
useMcs - A flag to indicate whether the points are in MCS or lat/lon.
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.