Changeset 12716 in josm


Ignore:
Timestamp:
2017-09-03T22:02:18+02:00 (3 months ago)
Author:
Don-vip
Message:

fix #15227 - call generic imagery layer factory instead of WMSLayer constructor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/MapRectifierWMSmenuAction.java

    r12636 r12716  
    2727import org.openstreetmap.josm.gui.MainApplication;
    2828import org.openstreetmap.josm.gui.datatransfer.ClipboardUtils;
    29 import org.openstreetmap.josm.gui.layer.WMSLayer;
     29import org.openstreetmap.josm.gui.layer.ImageryLayer;
    3030import org.openstreetmap.josm.gui.widgets.JosmTextField;
    3131import org.openstreetmap.josm.gui.widgets.UrlLabel;
     
    247247            }
    248248        }
    249         MainApplication.getLayerManager().addLayer(new WMSLayer(info));
     249        MainApplication.getLayerManager().addLayer(ImageryLayer.create(info));
    250250    }
    251251
Note: See TracChangeset for help on using the changeset viewer.