Add 2 methods
This commit is contained in:
parent
1690d0510f
commit
416b8d3665
1 changed files with 13 additions and 0 deletions
|
@ -212,6 +212,19 @@ public class RotatedTileBox {
|
|||
return pixHeight;
|
||||
}
|
||||
|
||||
public float getPixXFrom31(int x31, int y31) {
|
||||
double zm = getPowZoom(31 - zoom);
|
||||
double xTile = ((double) x31) / zm;
|
||||
double yTile = ((double) y31) / zm;
|
||||
return getPixXFromTile(xTile, yTile);
|
||||
}
|
||||
|
||||
public float getPixYFrom31(int x31, int y31) {
|
||||
double zm = getPowZoom(31 - zoom);
|
||||
double xTile = ((double) x31) / zm;
|
||||
double yTile = ((double) y31) / zm;
|
||||
return getPixYFromTile(xTile, yTile);
|
||||
}
|
||||
|
||||
public float getPixXFromLatLon(double latitude, double longitude) {
|
||||
double xTile = MapUtils.getTileNumberX(zoom, longitude);
|
||||
|
|
Loading…
Reference in a new issue