X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=org.simantics.district.maps%2Fsrc%2Forg%2Fsimantics%2Fmaps%2Fprefs%2FMapsClientPreferences.java;fp=org.simantics.district.maps%2Fsrc%2Forg%2Fsimantics%2Fmaps%2Fprefs%2FMapsClientPreferences.java;h=b061131378529eaeec8dd9c78927f3429d9c36d9;hb=a206ff20631f652d4d40c6da20284ee2c053037f;hp=75ad19d6471004b0206a006b46c6d6d0a4222c8e;hpb=43edc9f8e8e7a0548e15cc006e9c0bdb15400214;p=simantics%2Fdistrict.git diff --git a/org.simantics.district.maps/src/org/simantics/maps/prefs/MapsClientPreferences.java b/org.simantics.district.maps/src/org/simantics/maps/prefs/MapsClientPreferences.java index 75ad19d6..b0611313 100644 --- a/org.simantics.district.maps/src/org/simantics/maps/prefs/MapsClientPreferences.java +++ b/org.simantics.district.maps/src/org/simantics/maps/prefs/MapsClientPreferences.java @@ -34,8 +34,8 @@ public class MapsClientPreferences { } public static String possibleBuiltinServerURL() { - int port = getServerPreferences().getInt(P_DEFAULT_PORT, -1); - String style = getServerPreferences().get(P_CURRENT_TM2STYLE, null); + int port = getServerPreferences().getInt(P_DEFAULT_PORT, 8080); + String style = getServerPreferences().get(P_CURRENT_TM2STYLE, "mapbox-studio-osm-bright.tm2"); if (port != -1 && style != null) { try { return new URL("http", "localhost", port, "/" + style).toString();