Go to previous topic

This section describes the observer objects provided by Autodesk MapGuide. These observers are available for the Autodesk MapGuide Viewer Plug-In and Autodesk MapGuide Viewer,Java Edition. Observers for the Autodesk MapGuide Viewer, Java Edition are provided in the com.autodesk.mgjava package, which is located in the mgjava.cab file (for Windows systems only) and the mgjava.jar file (for all platforms). Observers for the Autodesk MapGuide Viewer Plug-In are provided in the mapguide package, located in the npmapv32.zip file in the Netscape Plugins folder.

MGAddMapLayerObserver

Implements the map layer-addition observer method onAddMapLayer. This method is called by when addMapLayer has completed its operation.

MGBusyStateChangedObserver

Implements the busy state observer event onBusyStateChanged. The Autodesk MapGuide Plug-In calls onBusyStateChanged when the user activates a change in the busy state, usually by panning or zooming on a map.

MGDigitizeCircleObserver

Implements the circle-digitizing observer method onDigitizedCircle. This method is called by when digitizeCircle in MGMap has completed its operation.

MGDigitizePointObserver

Implements the point-digitizing observer method onDigitizedPoint. This method is called by when digitizePoint in MGMap has completed its operation.

MGDigitizePolygonObserver

Replaced: Use MGDigitizePolygonObserverEx instead. Implements the polygon-digitizing observer method onDigitizedPolygon.

MGDigitizePolygonObserverEx

Implements the polygon-digitizing observer method onDigitizedPolygon. This method is called by and Java Editions when digitizePolygonEx in MGMap has completed its operation. MGDigitizePolygonObserverEx replaces MGDigitizePolygonObserver.

MGDigitizePolylineObserver

Replaced: Use MGDigitizePolylineObserverEx instead. Implements the polyline-digitizing observer method onDigitizedPolyline.

MGDigitizePolylineObserverEx

Implements the polyline-digitizing observer method onDigitizedPolyline. This method is called by when digitizePolyline in MGMap has completed its operation. MGDigitizePolylineObserverEx replaces MGDigitizePolylineObserver.

MGDigitizeRectangleObserver

Implements the rectangle-digitizing observer method onDigitizedRectangle. This method is called by when digitizeRectangle in MGMap has completed its operation.

MGDoubleClickObjectObserver

Implements the double-click observer method onDoubleClickObject. This method is called by when the user has double-clicked on a map feature.

MGMapLoadedObserver

Implements the map loaded observer method onMapLoaded. This method is called by when it loads an MWF file into the Autodesk MapGuide Viewer, prior to the first refresh. The Autodesk MapGuide Viewer, Java Edition provides this interface in the com.autodesk.mgjava package, which is located in the mgjava.cab file (for Windows systems only) and the mgjava.jar file (for all platforms).

MGPrintingObserver

Implements the printing observer methods onBeginLayout and onEndLayout.

MGSelectionChangedObserver

Implements the changed selection observer method onSelectionChanged. This method is called by when the selection of map features on the map is changed.

MGViewChangedObserver

Implements the changed view observer method onViewChanged. This method is called by when the map view has been updated or refreshed.

MGViewChangingObserver

Implements the changing view observer method onViewChanging. This method is called by before each refresh.

MGViewDistanceExObserver

Implements the view distance observer method onViewedDistanceEx. This method is called by the viewDistanceEx method.

MGViewDistanceObserver

Implements the view distance observer method onViewedDistance. This method is called by the viewDistance method.