Commit d963d167 authored by Julian Zobel's avatar Julian Zobel
Browse files

Added a simple way to get X and Y world dimensions

parent 32e5ffd8
......@@ -78,7 +78,17 @@ public class GPSCalculation {
public static int getZoom() {
return zoom;
}
public static double getWorldDimensionsX() {
return Binder.getComponentOrNull(Topology.class)
.getWorldDimensions().getX();
}
public static double getWorldDimensionsY() {
return Binder.getComponentOrNull(Topology.class)
.getWorldDimensions().getY();
}
public static double getLatUpper() {
return latCenter + (Binder.getComponentOrNull(Topology.class)
.getWorldDimensions().getY() / 111111d) * scaleFactor;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment