com.vaadin.flow.component.map.configuration.
java.lang.Object
com.vaadin.flow.component.map.configuration.Coordinate

All Implemented Interfaces:

Serializable

public class Coordinate extends Object implements Serializable

Represents map coordinates in a specific projection. 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.

See Also:

  • Constructor Details

    • Coordinate

      public Coordinate()
    • Coordinate

      public Coordinate(double x, double y)

      Constructs a new coordinate instance from x and y coordinates. 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:

      x -

      y -

  • Method Details

    • getX

      public double getX()
    • getY

      public double getY()
    • toString

      public String toString()

      Overrides:

      toString in class Object