]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/gui/map/MapTileConfig.java
Version 9, February 2010
[GpsPrune.git] / tim / prune / gui / map / MapTileConfig.java
index 762baf424f1066fb84e5a4466577fad61476c345..e545125256db43c46d19dc9b7e2e1f23653c9beb 100644 (file)
@@ -3,7 +3,7 @@ package tim.prune.gui.map;
 import java.net.MalformedURLException;
 import java.net.URL;
 
-import tim.prune.Config;
+import tim.prune.config.Config;
 
 /**
  * Class to hold the config for the map tiles
@@ -31,8 +31,8 @@ public class MapTileConfig
         */
        public MapTileConfig()
        {
-               _index = Config.getMapServerIndex();
-               _url = fixUrl(Config.getMapServerUrl());
+               _index = Config.getConfigInt(Config.KEY_MAPSERVERINDEX);
+               _url = fixUrl(Config.getConfigString(Config.KEY_MAPSERVERURL));
                // reset index wrong or if other url too short
                if (_index < 0 || _index > OTHER_SERVER_NUM ||
                        (_index == OTHER_SERVER_NUM && (_url == null || _url.length() < 5)))