Samples improvements #32
This commit is contained in:
parent
3603dfef03
commit
c4b6d019ff
@ -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)) {
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
@ -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);
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user