Modifier and Type | Method and Description |
---|---|
void |
adjustCursorLocationText() |
java.awt.Point |
getCenter()
This method returns the center of the map as a point.
|
Coordinate |
getCoordinate(int mapPointX,
int mapPointY)
Converts the relative pixel coordinate (regarding the top left corner of the displayed map) into a latitude /
longitude coordinate
|
int |
getMapHeight() |
java.awt.Point |
getMapPoint(Coordinate coord)
Calculates the position on the map of a given coordinate
|
java.awt.Point |
getMapPoint(double lat,
double lon,
boolean checkOutside) |
int |
getMapWidth() |
int |
getMapX() |
int |
getMapY() |
javafx.scene.Group |
getTilesGroup() |
TileSource |
getTileSource() |
void |
moveMap(int x,
int y)
Moves the map to the given coordinates so that x and y is in the center.
|
void |
setCursorLocationText(double x,
double y) |
void moveMap(int x, int y)
x
- y
- void setCursorLocationText(double x, double y)
void adjustCursorLocationText()
java.awt.Point getMapPoint(Coordinate coord)
java.awt.Point getMapPoint(double lat, double lon, boolean checkOutside)
java.awt.Point getCenter()
Coordinate getCoordinate(int mapPointX, int mapPointY)
javafx.scene.Group getTilesGroup()
TileSource getTileSource()
int getMapHeight()
int getMapWidth()
int getMapX()
int getMapY()