Remove last preference in raster maps plugin
This commit is contained in:
parent
19c369a719
commit
0f9ad9502b
4 changed files with 5 additions and 10 deletions
|
@ -1185,9 +1185,6 @@ public class OsmandSettings {
|
||||||
|
|
||||||
public final CommonPreference<Integer> NUMBER_OF_STARTS_FIRST_XMAS_SHOWN = new IntPreference("number_of_starts_first_xmas_shown", 0).makeGlobal();
|
public final CommonPreference<Integer> NUMBER_OF_STARTS_FIRST_XMAS_SHOWN = new IntPreference("number_of_starts_first_xmas_shown", 0).makeGlobal();
|
||||||
|
|
||||||
// this value string is synchronized with settings_pref.xml preference name
|
|
||||||
public final CommonPreference<Boolean> USE_INTERNET_TO_DOWNLOAD_TILES = new BooleanPreference("use_internet_to_download_tiles", true).makeGlobal().cache();
|
|
||||||
|
|
||||||
public final OsmandPreference<String> AVAILABLE_APP_MODES = new StringPreference("available_application_modes", "car,bicycle,pedestrian,public_transport,").makeGlobal().cache();
|
public final OsmandPreference<String> AVAILABLE_APP_MODES = new StringPreference("available_application_modes", "car,bicycle,pedestrian,public_transport,").makeGlobal().cache();
|
||||||
|
|
||||||
public final OsmandPreference<String> LAST_FAV_CATEGORY_ENTERED = new StringPreference("last_fav_category", "").makeGlobal();
|
public final OsmandPreference<String> LAST_FAV_CATEGORY_ENTERED = new StringPreference("last_fav_category", "").makeGlobal();
|
||||||
|
|
|
@ -127,8 +127,8 @@ class MapillaryVectorLayer extends MapTileLayer implements MapillaryLayer, ICont
|
||||||
int dzoom = nzoom - TILE_ZOOM;
|
int dzoom = nzoom - TILE_ZOOM;
|
||||||
int div = (int) Math.pow(2.0, dzoom);
|
int div = (int) Math.pow(2.0, dzoom);
|
||||||
|
|
||||||
boolean useInternet = (OsmandPlugin.getEnabledPlugin(OsmandRasterMapsPlugin.class) != null || OsmandPlugin.getEnabledPlugin(MapillaryPlugin.class) != null) &&
|
boolean useInternet = (OsmandPlugin.getEnabledPlugin(OsmandRasterMapsPlugin.class) != null || OsmandPlugin.getEnabledPlugin(MapillaryPlugin.class) != null)
|
||||||
settings.USE_INTERNET_TO_DOWNLOAD_TILES.get() && settings.isInternetConnectionAvailable() && map.couldBeDownloadedFromInternet();
|
&& settings.isInternetConnectionAvailable() && map.couldBeDownloadedFromInternet();
|
||||||
|
|
||||||
Map<String, GeometryTile> tiles = new HashMap<>();
|
Map<String, GeometryTile> tiles = new HashMap<>();
|
||||||
Map<QuadPointDouble, Map> visiblePoints = new HashMap<>();
|
Map<QuadPointDouble, Map> visiblePoints = new HashMap<>();
|
||||||
|
|
|
@ -42,8 +42,6 @@ public class SettingsRasterMapsActivity extends SettingsBaseActivity {
|
||||||
// present on configure map
|
// present on configure map
|
||||||
// addTileSourcePrefs(listener, cat);
|
// addTileSourcePrefs(listener, cat);
|
||||||
|
|
||||||
cat.addPreference(createCheckBoxPreference(settings.USE_INTERNET_TO_DOWNLOAD_TILES,
|
|
||||||
R.string.use_internet, R.string.use_internet_to_download_tile));
|
|
||||||
|
|
||||||
// int startZoom = 1;
|
// int startZoom = 1;
|
||||||
// int endZoom = 18;
|
// int endZoom = 18;
|
||||||
|
|
|
@ -154,8 +154,8 @@ public class MapTileLayer extends BaseMapLayer {
|
||||||
int width = (int) Math.ceil(tilesRect.right - left);
|
int width = (int) Math.ceil(tilesRect.right - left);
|
||||||
int height = (int) Math.ceil(tilesRect.bottom + ellipticTileCorrection - top);
|
int height = (int) Math.ceil(tilesRect.bottom + ellipticTileCorrection - top);
|
||||||
|
|
||||||
boolean useInternet = (OsmandPlugin.getEnabledPlugin(OsmandRasterMapsPlugin.class) != null || OsmandPlugin.getEnabledPlugin(MapillaryPlugin.class) != null) &&
|
boolean useInternet = (OsmandPlugin.getEnabledPlugin(OsmandRasterMapsPlugin.class) != null || OsmandPlugin.getEnabledPlugin(MapillaryPlugin.class) != null)
|
||||||
settings.USE_INTERNET_TO_DOWNLOAD_TILES.get() && settings.isInternetConnectionAvailable() && map.couldBeDownloadedFromInternet();
|
&& settings.isInternetConnectionAvailable() && map.couldBeDownloadedFromInternet();
|
||||||
int maxLevel = map.getMaximumZoomSupported();
|
int maxLevel = map.getMaximumZoomSupported();
|
||||||
int tileSize = map.getTileSize();
|
int tileSize = map.getTileSize();
|
||||||
boolean oneTileShown = false;
|
boolean oneTileShown = false;
|
||||||
|
|
Loading…
Reference in a new issue