You're viewing an older version of Vaadin JavaDoc. Please see version 24.8.0 for the latest.
com.vaadin.flow.component.map.configuration.geometry.

All Implemented Interfaces:

Serializable

public class Point extends SimpleGeometry

Geometry that is represented by a single point and coordinate.

See Also:

  • Constructor Details

    • Point

      public Point(Coordinate coordinates)

      Creates a new point geometry located at the specified coordinates. Coordinates must be specified in the map's user projection, which by default is EPSG:4326, also referred to as GPS coordinates.

      Parameters:

      coordinates - the coordinates that locate the point

  • Method Details

    • getType

      public String getType()

      Description copied from class: AbstractConfigurationObject

      The unique type name of this class. Used by the client-side synchronization mechanism to determine which OpenLayers class to synchronize into.

      Specified by:

      getType in class AbstractConfigurationObject

    • getCoordinates

      public Coordinate getCoordinates()

      The coordinates where the point is located

      Returns:

      the current coordinates

    • setCoordinates

      public void setCoordinates(Coordinate coordinates)

      Sets the coordinates that locate the point. Coordinates must be specified in the map's user projection, which by default is EPSG:4326, also referred to as GPS coordinates. If the user projection has been changed using Map.setUserProjection(String), then coordinates must be specified in that projection instead.

      Parameters:

      coordinates - the new coordinates, not null