Changeset 33551 in osm for applications/editors/josm/plugins
- Timestamp:
- 2017-08-27T14:45:01+02:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/ElevationProfile
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ElevationProfile/build.xml
r33214 r33551 4 4 <property name="commit.message" value="[josm_elevationprofile]"/> 5 5 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 6 <property name="plugin.main.version" value="1 1843"/>6 <property name="plugin.main.version" value="12669"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/grid/ElevationGridLayer.java
r32775 r33551 21 21 import org.openstreetmap.josm.data.Bounds; 22 22 import org.openstreetmap.josm.data.coor.LatLon; 23 import org.openstreetmap.josm.data.imagery.CoordinateConversion; 23 24 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 24 25 import org.openstreetmap.josm.gui.MapView; … … 85 86 } else { 86 87 // give some consolation... 87 Point topLeft = mv.getPoint( new LatLon(tileSource.tileXYToLatLon(x, y, ELE_ZOOM_LEVEL)));88 Point topLeft = mv.getPoint(CoordinateConversion.coorToLL(tileSource.tileXYToLatLon(x, y, ELE_ZOOM_LEVEL))); 88 89 t.paint(g, topLeft.x, topLeft.y); 89 90 } -
applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/grid/ElevationGridTile.java
r32775 r33551 19 19 import org.openstreetmap.josm.data.Bounds; 20 20 import org.openstreetmap.josm.data.coor.LatLon; 21 import org.openstreetmap.josm.data.imagery.CoordinateConversion; 21 22 import org.openstreetmap.josm.gui.MapView; 22 23 import org.openstreetmap.josm.plugins.elevation.ElevationHelper; … … 128 129 private Bounds tile2Bounds(final int x, final int y, final int zoom) { 129 130 return new Bounds( 130 new LatLon(source.tileXYToLatLon(x, y, zoom)),131 new LatLon(source.tileXYToLatLon(x + 1, y + 1, zoom)));131 CoordinateConversion.coorToLL(source.tileXYToLatLon(x, y, zoom)), 132 CoordinateConversion.coorToLL(source.tileXYToLatLon(x + 1, y + 1, zoom))); 132 133 } 133 134
Note:
See TracChangeset
for help on using the changeset viewer.