This commit is contained in:
Petr Pokorny
2021-07-28 21:06:25 +02:00
committed by GitHub
parent 57b968c255
commit 2a86dcefc0
2 changed files with 16 additions and 10 deletions

View File

@@ -59,14 +59,15 @@ public final class Mapbox {
FileSource.initializeFileDirsPaths(appContext);
INSTANCE = new Mapbox(appContext, null);
ConnectivityReceiver.instance(appContext);
} else {
TileServerOptions tileServerOptions = TileServerOptions.get(WellKnownTileServer.MapLibre);
INSTANCE.tileServerOptions = tileServerOptions;
INSTANCE.apiKey = null;
FileSource fileSource = FileSource.getInstance(context);
fileSource.setTileServerOptions(tileServerOptions);
fileSource.setApiKey(null);
}
TileServerOptions tileServerOptions = TileServerOptions.get(WellKnownTileServer.MapLibre);
INSTANCE.tileServerOptions = tileServerOptions;
INSTANCE.apiKey = null;
FileSource fileSource = FileSource.getInstance(context);
fileSource.setTileServerOptions(tileServerOptions);
fileSource.setApiKey(null);
return INSTANCE;
}