Go to object model Go to parent topic Go to previous topic Go to next topic

The MGPoint object represents a point on the map expressed in MCS or latitude/longitude coordinates.

For a point expressed in latitude/longitude, X represents longitude, while Y represents latitude. You can create an MGPoint object using the createObject method in MGMap.

Java Development for Autodesk MapGuide Viewer Plug-In: For Autodesk MapGuide Viewer Plug-In, the Java class MGPoint extends java.lang.Object and can be found in the mapguide package, located in the npmapv32.zip file in the Netscape Plugins folder.

Java Development for Autodesk MapGuide Viewer, Java Edition: For Autodesk MapGuide Viewer, Java Edition, MGPoint is a Java interface that resides 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).

Methods

equals

Compares this MGPoint object to the specified object.

getX

Returns the X value (longitude) of the point.

getY

Returns the Y value (latitude) of the point.

setX

Sets the X value (longitude) of the point.

setY

Returns the Y value (latitude) of the point.

 

Properties

Note that direct access to properties is only available in Autodesk MapGuide Viewer ActiveX Control. In Autodesk MapGuide Viewer Plug-In and Autodesk MapGuide Viewer, Java Edition APIs, get/set methods provide access to an object's properties. For compatibility, the ActiveX Control API supports the same get/set methods as the Autodesk MapGuide Viewer Plug-In and the Autodesk MapGuide Viewer, Java Edition APIs.

X

The X value (longitude) of the point.

Y

The Y value (latitude) of the point.