Changeset 5389 in josm


Ignore:
Timestamp:
Aug 3, 2012 9:59:46 PM (10 months ago)
Author:
bastiK
Message:

fixed #7872 - adjustable tile size for wms (based on patch by Cobra)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/WMSLayer.java

    r5017 r5389  
    106106    public static final IntegerProperty PROP_OVERLAP_EAST = new IntegerProperty("imagery.wms.overlapEast", 14); 
    107107    public static final IntegerProperty PROP_OVERLAP_NORTH = new IntegerProperty("imagery.wms.overlapNorth", 4); 
     108    public static final IntegerProperty PROP_IMAGE_SIZE = new IntegerProperty("imagery.wms.imageSize", 500); 
    108109 
    109110    public int messageNum = 5; //limit for messages per layer 
    110111    protected String resolution; 
    111     protected int imageSize = 500; 
     112    protected int imageSize; 
    112113    protected int dax = 10; 
    113114    protected int day = 10; 
     
    158159    public WMSLayer(ImageryInfo info) { 
    159160        super(info); 
     161        imageSize = PROP_IMAGE_SIZE.get(); 
    160162        mv = Main.map.mapView; 
    161163        setBackgroundLayer(true); /* set global background variable */ 
Note: See TracChangeset for help on using the changeset viewer.