Ignore:
Timestamp:
2017-08-27T14:45:01+02:00 (7 years ago)
Author:
donvip
Message:

update to JOSM 12669

Location:
applications/editors/josm/plugins/ElevationProfile
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/ElevationProfile/build.xml

    r33214 r33551  
    44    <property name="commit.message" value="[josm_elevationprofile]"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="11843"/>
     6    <property name="plugin.main.version" value="12669"/>
    77   
    88    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/grid/ElevationGridLayer.java

    r32775 r33551  
    2121import org.openstreetmap.josm.data.Bounds;
    2222import org.openstreetmap.josm.data.coor.LatLon;
     23import org.openstreetmap.josm.data.imagery.CoordinateConversion;
    2324import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor;
    2425import org.openstreetmap.josm.gui.MapView;
     
    8586                } else {
    8687                    // 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)));
    8889                    t.paint(g, topLeft.x, topLeft.y);
    8990                }
  • applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/grid/ElevationGridTile.java

    r32775 r33551  
    1919import org.openstreetmap.josm.data.Bounds;
    2020import org.openstreetmap.josm.data.coor.LatLon;
     21import org.openstreetmap.josm.data.imagery.CoordinateConversion;
    2122import org.openstreetmap.josm.gui.MapView;
    2223import org.openstreetmap.josm.plugins.elevation.ElevationHelper;
     
    128129    private Bounds tile2Bounds(final int x, final int y, final int zoom) {
    129130        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)));
    132133    }
    133134
Note: See TracChangeset for help on using the changeset viewer.