Changeset 31339 in osm for applications
- Timestamp:
- 2015-07-04T22:52:49+02:00 (9 years ago)
- Location:
- applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/TileXY.java
r31301 r31339 38 38 */ 39 39 public int getYIndex() { 40 return y < 0 ? (int) Math.ceil( x) : (int) Math.floor(y);40 return y < 0 ? (int) Math.ceil(y) : (int) Math.floor(y); 41 41 } 42 42 -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/AbstractTMSTileSource.java
r31310 r31339 161 161 162 162 @Override 163 public Coordinate XYToLatLon(Point point, int zoom) {163 public ICoordinate XYToLatLon(Point point, int zoom) { 164 164 return XYToLatLon(point.x, point.y, zoom); 165 165 } 166 166 167 167 @Override 168 public Coordinate XYToLatLon(int x, int y, int zoom) {168 public ICoordinate XYToLatLon(int x, int y, int zoom) { 169 169 return new Coordinate( 170 170 osmMercator.YToLat(y, zoom), … … 207 207 208 208 @Override 209 public Coordinate tileXYToLatLon(TileXY xy, int zoom) {209 public ICoordinate tileXYToLatLon(TileXY xy, int zoom) { 210 210 return tileXYToLatLon(xy.getXIndex(), xy.getYIndex(), zoom); 211 211 } 212 212 213 213 @Override 214 public Coordinate tileXYToLatLon(Tile tile) {214 public ICoordinate tileXYToLatLon(Tile tile) { 215 215 return tileXYToLatLon(tile.getXtile(), tile.getYtile(), tile.getZoom()); 216 216 } 217 217 218 218 @Override 219 public Coordinate tileXYToLatLon(int x, int y, int zoom) {219 public ICoordinate tileXYToLatLon(int x, int y, int zoom) { 220 220 return new Coordinate( 221 221 osmMercator.YToLat(y * tileSize, zoom),
Note:
See TracChangeset
for help on using the changeset viewer.