Changeset 32528 in osm for applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryOffset.java
- Timestamp:
- 2016-07-02T03:55:03+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryOffset.java
r29384 r32528 1 // License: WTFPL. For details, see LICENSE file. 1 2 package iodb; 2 3 3 4 import java.util.Map; 5 4 6 import org.openstreetmap.josm.data.coor.CoordinateFormat; 5 7 import org.openstreetmap.josm.data.coor.LatLon; … … 9 11 * of the position point on the imagery layer. The offset is then calculated 10 12 * as a difference between the two. 11 * 13 * 12 14 * @author Zverik 13 15 * @license WTFPL … … 18 20 private int minZoom, maxZoom; 19 21 20 public ImageryOffset( String imagery, LatLon imageryPos) {22 public ImageryOffset(String imagery, LatLon imageryPos) { 21 23 this.imageryPos = imageryPos; 22 24 this.imagery = imagery; … … 24 26 this.maxZoom = 30; 25 27 } 26 28 27 29 public void setMaxZoom(int maxZoom) { 28 30 this.maxZoom = maxZoom; … … 32 34 this.minZoom = minZoom; 33 35 } 34 36 35 37 public LatLon getImageryPos() { 36 38 return imageryPos; … … 50 52 51 53 @Override 52 public void putServerParams( Map<String, String> map) {54 public void putServerParams(Map<String, String> map) { 53 55 super.putServerParams(map); 54 56 map.put("imagery", imagery); 55 57 map.put("imlat", imageryPos.latToString(CoordinateFormat.DECIMAL_DEGREES)); 56 58 map.put("imlon", imageryPos.lonToString(CoordinateFormat.DECIMAL_DEGREES)); 57 if (minZoom > 0)59 if (minZoom > 0) 58 60 map.put("minzoom", String.valueOf(minZoom)); 59 if (maxZoom < 30)61 if (maxZoom < 30) 60 62 map.put("maxzoom", String.valueOf(maxZoom)); 61 63 } … … 63 65 @Override 64 66 public String toString() { 65 return "ImageryOffset{" + "imageryPos=" + imageryPos + ", imagery=" + imagery + "position=" + position + ", date=" + date + ", author=" + author + ", description=" + description + ", abandonDate=" + abandonDate + '}'; 67 return "ImageryOffset{" + "imageryPos=" + imageryPos + ", imagery=" + imagery + "position=" + position + ", date=" + date + 68 ", author=" + author + ", description=" + description + ", abandonDate=" + abandonDate + '}'; 66 69 } 67 70 }
Note:
See TracChangeset
for help on using the changeset viewer.
