Samples improvements #32

This commit is contained in:
Emux 2017-09-14 13:15:59 +03:00
parent 3603dfef03
commit c4b6d019ff
4 changed files with 6 additions and 6 deletions

View File

@ -154,7 +154,7 @@ public class MapsforgeMapActivity extends MapActivity {
} }
mTileSource = new MapFileTileSource(); mTileSource = new MapFileTileSource();
mTileSource.setPreferredLanguage("en"); //mTileSource.setPreferredLanguage("en");
String file = intent.getStringExtra(FilePicker.SELECTED_FILE); String file = intent.getStringExtra(FilePicker.SELECTED_FILE);
if (mTileSource.setMapFile(file)) { if (mTileSource.setMapFile(file)) {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2016 devemux86 * Copyright 2016-2017 devemux86
* *
* This program is free software: you can redistribute it and/or modify it under the * This program is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free Software * terms of the GNU Lesser General Public License as published by the Free Software
@ -45,7 +45,7 @@ public class MapsforgeMultiTest extends GdxMap {
mapFileTileSource.setMapFile(mapFile.getAbsolutePath()); mapFileTileSource.setMapFile(mapFile.getAbsolutePath());
tileSource.add(mapFileTileSource); tileSource.add(mapFileTileSource);
} }
tileSource.setPreferredLanguage("en"); //tileSource.setPreferredLanguage("en");
VectorTileLayer l = mMap.setBaseMap(tileSource); VectorTileLayer l = mMap.setBaseMap(tileSource);
mMap.setTheme(VtmThemes.DEFAULT); mMap.setTheme(VtmThemes.DEFAULT);

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2016 devemux86 * Copyright 2016-2017 devemux86
* *
* This program is free software: you can redistribute it and/or modify it under the * This program is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free Software * terms of the GNU Lesser General Public License as published by the Free Software
@ -41,7 +41,7 @@ public class MapsforgeStyleTest extends GdxMap {
public void createLayers() { public void createLayers() {
MapFileTileSource tileSource = new MapFileTileSource(); MapFileTileSource tileSource = new MapFileTileSource();
tileSource.setMapFile(mapFile.getAbsolutePath()); tileSource.setMapFile(mapFile.getAbsolutePath());
tileSource.setPreferredLanguage("en"); //tileSource.setPreferredLanguage("en");
VectorTileLayer l = mMap.setBaseMap(tileSource); VectorTileLayer l = mMap.setBaseMap(tileSource);
loadTheme(null); loadTheme(null);

View File

@ -44,7 +44,7 @@ public class MapsforgeTest extends GdxMap {
public void createLayers() { public void createLayers() {
MapFileTileSource tileSource = new MapFileTileSource(); MapFileTileSource tileSource = new MapFileTileSource();
tileSource.setMapFile(mapFile.getAbsolutePath()); tileSource.setMapFile(mapFile.getAbsolutePath());
tileSource.setPreferredLanguage("en"); //tileSource.setPreferredLanguage("en");
VectorTileLayer l = mMap.setBaseMap(tileSource); VectorTileLayer l = mMap.setBaseMap(tileSource);
mMap.setTheme(VtmThemes.DEFAULT); mMap.setTheme(VtmThemes.DEFAULT);