X-Git-Url: https://gitweb.fperrin.net/?a=blobdiff_plain;f=tim%2Fprune%2Fgui%2Fmap%2FMapTileConfig.java;h=e545125256db43c46d19dc9b7e2e1f23653c9beb;hb=1ee49ae3c8ef3aa2e63eadd458531e5f8bd4f92c;hp=762baf424f1066fb84e5a4466577fad61476c345;hpb=54b9d8bc8f0025ccf97a67d9dd217ef1f9cf082f;p=GpsPrune.git diff --git a/tim/prune/gui/map/MapTileConfig.java b/tim/prune/gui/map/MapTileConfig.java index 762baf4..e545125 100644 --- a/tim/prune/gui/map/MapTileConfig.java +++ b/tim/prune/gui/map/MapTileConfig.java @@ -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)))