Class Coordinate
java.lang.Object
com.vaadin.flow.component.map.configuration.Coordinate
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionCoordinate(double x, double y) Constructs a new coordinate instance from x and y coordinates. -
Method Summary
-
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 isEPSG:4326, also referred to as GPS coordinates. If the user projection has been changed usingMap.setUserProjection(String), then coordinates must be specified in that projection instead.- Parameters:
x-y-
-
-
Method Details