Changeset 31293 in osm for applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/OsmMercator.java
- Timestamp:
- 2015-06-20T13:27:47+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/OsmMercator.java
r31135 r31293 8 8 * space is measured in pixels. The origin of the map space is the top left 9 9 * corner. The map space origin (0,0) has latitude ~85 and longitude -180. 10 * @author Jan Peter Stotz 11 * @author Jason Huntley 10 12 */ 11 13 public class OsmMercator { … … 38 40 /** 39 41 * Creates instance with provided tile size. 40 * @param tileSize 42 * @param tileSize tile size in pixels 41 43 */ 42 44 public OsmMercator(int tileSize) { … … 77 79 * @param zoomLevel the zoom level 78 80 * @return the distance 79 * @author Jason Huntley80 81 */ 81 82 public double getDistance(int x1, int y1, int x2, int y2, int zoomLevel) { … … 96 97 * @param lo2 the Longitude from 2nd coordinate in degrees 97 98 * @return the distance 98 * @author Jason Huntley99 99 */ 100 100 public double getDistance(double la1, double lo1, double la2, double lo2) { … … 127 127 * [-180..180] 128 128 * @return [0..2^Zoomlevel*TILE_SIZE[ 129 * @author Jan Peter Stotz130 129 */ 131 130 public double LonToX(double aLongitude, int aZoomlevel) { … … 151 150 * [-90...90] 152 151 * @return [0..2^Zoomlevel*TILE_SIZE[ 153 * @author Jan Peter Stotz154 152 */ 155 153 public double LatToY(double aLat, int aZoomlevel) { … … 181 179 * [0..2^Zoomlevel*TILE_WIDTH[ 182 180 * @return ]-180..180[ 183 * @author Jan Peter Stotz184 181 */ 185 182 public double XToLon(int aX, int aZoomlevel) {
Note:
See TracChangeset
for help on using the changeset viewer.