MGDigitizePointObserver.onDigitizedPoint   Go to object model Go to parent topic

Syntax

public abstract void onDigitizedPoint(MGMap map, MGPoint point)

Description

The point-digitizing observer method. It is initiated by a call to digitizePoint.

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

Applies To

Plug-In and Java Edition only

Parameters

map - The map object for which the event occurred.

point - The MGPoint object for the digitized longitude/latitude coordinate pair.

Error Codes

none

Example

To handle this event from the Plug-In or Java Edition, a Java object that implements the MGDigitizePointObserver interface must be passed to the digitizePoint method. The observer Java object should include the following:

<class_definition> implements MGDigitizePointObserver
{
	// ...
	public void onDigitizedPoint(MGMap map, 
MGPoint point)
{
		// 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

digitizePoint