Ignore:
Timestamp:
2016-06-19T16:08:56+02:00 (8 years ago)
Author:
donvip
Message:

fix #josm12953 - Replace most uses of MapView.getActiveLayer and similar methods (patch by michael2402, modified) - gsoc-core

Location:
applications/editors/josm/plugins/imagery_offset_db
Files:
2 edited

Legend:

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

    r32046 r32329  
    55    <property name="commit.message" value="Imagery Offset Database"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="9168"/>
     7    <property name="plugin.main.version" value="10279"/>
    88        <property name="plugin.canloadatruntime" value="true"/>
    99
  • applications/editors/josm/plugins/imagery_offset_db/src/iodb/ImageryOffsetTools.java

    r30218 r32329  
    3030        if( Main.map == null || Main.map.mapView == null )
    3131            return null;
    32         List<ImageryLayer> layers = Main.map.mapView.getLayersOfType(ImageryLayer.class);
     32        List<ImageryLayer> layers = Main.getLayerManager().getLayersOfType(ImageryLayer.class);
    3333        for( ImageryLayer layer : layers ) {
    3434            String url = layer.getInfo().getUrl();
Note: See TracChangeset for help on using the changeset viewer.