Skip to content

Commit

Permalink
Issue osmdroid#13 - Pathoverlay does not work with 512x512 tiles.
Browse files Browse the repository at this point in the history
- The issue is already solved, but to hold it consistent, the problem
even has to be solved in the TileSystem wrapper class of osmdroid. Now
it is alright.
  • Loading branch information
silviokuehn committed Dec 2, 2014
1 parent 894765c commit c395ddb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static int getTileSize() {
}

/** @see microsoft.mappoint.TileSystem#MapSize(int) */
public static int MapSize(final int levelOfDetail) {
public static long MapSize(final int levelOfDetail) {
return microsoft.mappoint.TileSystem.MapSize(levelOfDetail);
}

Expand All @@ -52,7 +52,7 @@ public static Point LatLongToPixelXY(
/** @see microsoft.mappoint.TileSystem#PixelXYToLatLong(int, int, int, GeoPoint) */
public static GeoPoint PixelXYToLatLong(
final int pixelX, final int pixelY, final int levelOfDetail, final GeoPoint reuse) {
final int mapSize = MapSize(levelOfDetail);
final long mapSize = MapSize(levelOfDetail);
return microsoft.mappoint.TileSystem.PixelXYToLatLong(
(int) wrap(pixelX, 0, mapSize - 1, mapSize),
(int) wrap(pixelY, 0, mapSize - 1, mapSize),
Expand Down

0 comments on commit c395ddb

Please sign in to comment.