Changeset 28008 in osm for applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryOffset.java
- Timestamp:
- 2012-03-06T21:32:44+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryOffset.java
r27986 r28008 1 1 package iodb; 2 2 3 import java.util.Map; 4 import org.openstreetmap.josm.data.coor.CoordinateFormat; 3 5 import org.openstreetmap.josm.data.coor.LatLon; 4 6 … … 19 21 this.maxZoom = 30; 20 22 } 21 23 22 24 public void setMaxZoom(int maxZoom) { 23 25 this.maxZoom = maxZoom; … … 43 45 return minZoom; 44 46 } 47 48 @Override 49 public void putServerParams( Map<String, String> map ) { 50 super.putServerParams(map); 51 map.put("imagery", imagery); 52 map.put("imlat", imageryPos.latToString(CoordinateFormat.DECIMAL_DEGREES)); 53 map.put("imlon", imageryPos.lonToString(CoordinateFormat.DECIMAL_DEGREES)); 54 if( minZoom > 0 ) 55 map.put("minzoom", String.valueOf(minZoom)); 56 if( maxZoom < 30 ) 57 map.put("maxzoom", String.valueOf(maxZoom)); 58 } 45 59 }
Note:
See TracChangeset
for help on using the changeset viewer.