Changeset 6889 in josm for trunk/src/org/openstreetmap/josm/tools/OsmUrlToBounds.java
- Timestamp:
- 2014-02-27T01:41:49+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/OsmUrlToBounds.java
r6830 r6889 250 250 * @return matching zoom level for area 251 251 */ 252 static public int getZoom(Bounds b) {252 public static int getZoom(Bounds b) { 253 253 // convert to mercator (for calculation of zoom only) 254 254 double latMin = Math.log(Math.tan(Math.PI/4.0+b.getMinLat()/180.0*Math.PI/2.0))*180.0/Math.PI;
Note:
See TracChangeset
for help on using the changeset viewer.