| MGDigitizeCircleObserver.onDigitizedCircle |
|
public abstract void onDigitizedCircle(MGMap map, String units, MGPoint center, double radius)
The circle-digitizing observer event method.
This event is fired when the user has finished digitizing a circle. It is initiated by a call to digitizeCircle.
This topic describes this event for Plug-In and Java Edition only. For ActiveX Control, see onDigitizedCircle.
Plug-In and Java Edition only
map - The map object for which the event occurred.
units - A string containing the units in which the radius is provided, one of the following codes: M (meters), KM (kilometers), FT (feet), or MI (miles)
center - An MGPoint object for the longitude/latitude center of the digitized circle.
radius - The radius of the digitized circle.
-1 (busy)
To handle this event from the Plug-In or Java Edition, a Java object that implements the MGDigitizeCircleObserver interface must be passed to the digitizeCircle method. The observer Java object should include the following:
<class_definition> implements MGDigitizeCircleObserver
{
// ...
public void onDigitizedCircle(MGMap map,
String units,
MGPoint center,
double radius)
{
// 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.