Ignore:
Timestamp:
2009-05-17T13:19:29+02:00 (15 years ago)
Author:
stoecker
Message:

close #2589, #2310

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSPlugin.java

    r14120 r15091  
    3737    static ArrayList<WMSInfo> wmsList = new ArrayList<WMSInfo>();
    3838    static TreeMap<String,String> wmsListDefault = new TreeMap<String,String>();
     39
     40    static boolean doOverlap = false;
     41    static int overlapLat = 4;
     42    static int overlapLon = 14;
    3943
    4044    // remember state of menu item to restore on changed preferences
     
    7781
    7882        TreeSet<String> keys = new TreeSet<String>(prefs.keySet());
     83
     84        // Here we load the settings for "overlap" checkbox and spinboxes.
     85
     86        try {
     87            doOverlap = Boolean.valueOf(prefs.get("wmsplugin.url.overlap"));
     88        } catch (Exception e) {} // If sth fails, we drop to default settings.
     89
     90        try {
     91            overlapLat = Integer.valueOf(prefs.get("wmsplugin.url.overlapLat"));
     92        } catch (Exception e) {} // If sth fails, we drop to default settings.
     93
     94        try {
     95            overlapLon = Integer.valueOf(prefs.get("wmsplugin.url.overlapLon"));
     96        } catch (Exception e) {} // If sth fails, we drop to default settings.
     97
     98        // And then the names+urls of WMS servers
    7999        int prefid = 0;
    80100        String name = null;
Note: See TracChangeset for help on using the changeset viewer.