public class

PointGeometry

extends Geometry
java.lang.Object
   ↳ com.carto.geometry.Geometry
     ↳ com.carto.geometry.PointGeometry

Class Overview

Point geometry. Geometry is defined by a single map position.

Summary

Public Constructors
PointGeometry(MapPos pos)
Constructs a PointGeometry object from a given map position.
Public Methods
synchronized void delete()
MapPos getCenterPos()
Returns the center point of the geometry.
MapPos getPos()
Returns the position of the point.
[Expand]
Inherited Methods
From class com.carto.geometry.Geometry
From class java.lang.Object

Public Constructors

public PointGeometry (MapPos pos)

Constructs a PointGeometry object from a given map position.

Parameters
pos The map position.

Public Methods

public synchronized void delete ()

public MapPos getCenterPos ()

Returns the center point of the geometry.

Returns
  • The center point of the geometry.

public MapPos getPos ()

Returns the position of the point.

Returns
  • The position of the point.