Changeset 31310 in osm for applications
- Timestamp:
- 2015-06-25T00:03:21+02:00 (9 years ago)
- Location:
- applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/JMapViewer.java
r31301 r31310 447 447 @Deprecated 448 448 public Integer getLatOffset(double lat, double offset, boolean checkOutside) { 449 int y = tileSource. LatToY(lat + offset, zoom);449 int y = tileSource.latToY(lat + offset, zoom); 450 450 y -= center.y - getHeight() / 2; 451 451 if (checkOutside) { -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/interfaces/TemplatedTileSource.java
r31301 r31310 8 8 * 9 9 * @author Wiktor Niesiobędzki 10 * @since TODO10 * @since 1.10 11 11 */ 12 12 public interface TemplatedTileSource extends TileSource { -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/interfaces/TileSource.java
r31301 r31310 125 125 */ 126 126 @Deprecated 127 int LonToX(double aLongitude, int aZoomlevel);127 int lonToX(double aLongitude, int aZoomlevel); 128 128 129 129 /** … … 135 135 */ 136 136 @Deprecated 137 int LatToY(double aLat, int aZoomlevel);137 int latToY(double aLat, int aZoomlevel); 138 138 139 139 /** -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/AbstractTMSTileSource.java
r31301 r31310 128 128 129 129 @Override 130 public int LonToX(double lon, int zoom) {130 public int lonToX(double lon, int zoom) { 131 131 return (int )osmMercator.LonToX(lon, zoom); 132 132 } 133 133 134 134 @Override 135 public int LatToY(double lat, int zoom) {135 public int latToY(double lat, int zoom) { 136 136 return (int )osmMercator.LatToY(lat, zoom); 137 137 } -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/ScanexTileSource.java
r31125 r31310 93 93 94 94 @Override 95 public int LatToY(double lat, int zoom) {95 public int latToY(double lat, int zoom) { 96 96 return (int )(latToTileY(lat, zoom) * tileSize); 97 97 }
Note:
See TracChangeset
for help on using the changeset viewer.