Changeset 32602 in osm for applications/viewer/jmapviewer/src
- Timestamp:
- 2016-07-08T03:04:49+02:00 (9 years ago)
- Location:
- applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/DefaultMapController.java
r32074 r32602 8 8 import java.awt.event.MouseWheelEvent; 9 9 import java.awt.event.MouseWheelListener; 10 import java.util.Locale; 10 11 11 12 /** … … 185 186 public static boolean isPlatformOsx() { 186 187 String os = System.getProperty("os.name"); 187 return os != null && os.toLowerCase().startsWith("mac os x"); 188 return os != null && os.toLowerCase(Locale.ENGLISH).startsWith("mac os x"); 188 189 } 189 190 } -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/OsmMercator.java
r32073 r32602 22 22 public static final double MIN_LAT = -85.05112877980659; 23 23 /** equatorial earth radius for EPSG:3857 (Mercator) */ 24 public static final double EARTH_RADIUS = 6 378137;24 public static final double EARTH_RADIUS = 6_378_137; 25 25 26 26 /** -
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/ScanexTileSource.java
r31790 r32602 24 24 // Latitude to Y and back calculations. 25 25 26 /** radius of Earth at equator, m */27 private static double RADIUS_E = 6378137;28 /** equator length, m */29 private static double EQUATOR = 40075016.68557849;30 26 /** eccentricity of Earth's ellipsoid */ 31 27 private static double E = 0.0818191908426;
Note:
See TracChangeset
for help on using the changeset viewer.