Changeset 4452 in josm


Ignore:
Timestamp:
Sep 19, 2011 3:19:11 PM (20 months ago)
Author:
bastiK
Message:

remaining parameters for imagery preferences

Location:
trunk/src/org/openstreetmap/josm/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/Preferences.java

    r4450 r4452  
    967967                    continue; 
    968968                } 
     969            } else if (f.getType() == Double.class || f.getType() == double.class) { 
     970                try { 
     971                    value = Double.parseDouble(valueString); 
     972                } catch (NumberFormatException nfe) { 
     973                    continue; 
     974                } 
    969975            } else  if (f.getType() == String.class) { 
    970976                value = valueString; 
  • trunk/src/org/openstreetmap/josm/data/imagery/ImageryInfo.java

    r4450 r4452  
    8686        @pref String type; 
    8787        @pref String url; 
     88        @pref double pixel_per_eastnorth; 
    8889        @pref String eula; 
    8990        @pref String attribution_text; 
    9091        @pref String attribution_url; 
     92        @pref String logo_image; 
    9193        @pref String terms_of_use_url; 
    9294        @pref String country_code = ""; 
     
    105107            type = i.imageryType.getUrlString(); 
    106108            url = i.url; 
     109            pixel_per_eastnorth = i.pixelPerDegree; 
    107110            eula = i.eulaAcceptanceRequired; 
    108111            attribution_text = i.attributionText; 
    109112            attribution_url = i.attributionLinkURL; 
     113            logo_image = i.attributionImage; 
    110114            terms_of_use_url = i.termsOfUseURL; 
    111115            country_code = i.countryCode; 
     
    173177        name = e.name; 
    174178        url = e.url; 
     179        cookies = e.cookies; 
    175180        eulaAcceptanceRequired = e.eula; 
    176181        for (ImageryType type : ImageryType.values()) { 
     
    180185            } 
    181186        } 
     187        pixelPerDegree = e.pixel_per_eastnorth; 
    182188        defaultMaxZoom = e.max_zoom; 
    183189        defaultMinZoom = e.min_zoom; 
     
    198204        } 
    199205        attributionText = e.attribution_text; 
     206        attributionImage = e.logo_image; 
    200207        attributionLinkURL = e.attribution_url; 
    201208        termsOfUseURL = e.terms_of_use_url; 
Note: See TracChangeset for help on using the changeset viewer.