MGBusyStateChangedObserver.onBusyStateChanged   Go to object model Go to parent topic

Syntax

void onBusyStateChanged(MGMap map, boolean busyState)

Description

The busy state observer event method.

Autodesk MapGuide enters busy states when users pan or zoom to view more map data.

This topic describes this event for Plug-In and Java Edition only. For ActiveX Control, see onBusyStateChanged.

Applies To

Plug-In and Java Edition only

Parameters

map - The map object that this event applies to.

busyState - The current busy state of Autodesk MapGuide Viewer.

Error Codes

none

Example

To handle this event from the Plug-In or Java Edition, a Java object that implements the MGBusyStateChangedObserver interface must be established with a call to the setBusyStateChanged method. The observer Java object should include the following:

<class_definition> implements MGBusyStateChangedObserver
{
	...
public void onBusyStateChanged(MGMap map, boolean busyState)
{
// event handling code here...
}
	// ...
}

The simplest way to include the observer object in a Web page is to implement it as an applet. See Advanced Examples for a fully functional observer object that supports all of the observer interfaces by forwarding the events back to JavaScript functions that have identical semantics to the ActiveX Control event handlers.

See Also

getBusyStateChangedObserver, setBusyStateChangedObserver