Transparency bar on map in progress.
This commit is contained in:
parent
dc4ca416fa
commit
ab89f89356
3 changed files with 8 additions and 1 deletions
|
@ -11,6 +11,8 @@
|
|||
-->
|
||||
<string name="select_map_marker">Select Map marker</string>
|
||||
<string name="map_markers_other">Other markers</string>
|
||||
<string name="upload_anonymously">Upload anonymously</string>
|
||||
<string name="show_transparency_seekbar">Show transparency seekbar</string>
|
||||
<string name="download_files_error_not_enough_space">Not enough space!
|
||||
This would need {3} MB temporarily and {1} MB permanently.
|
||||
Currently, there are only {2} MB available.</string>
|
||||
|
@ -2239,5 +2241,4 @@ If you need help with OsmAnd application, please contact our support team: suppo
|
|||
<string name="number_of_contributors">Number of contributors</string>
|
||||
<string name="number_of_edits">Number of edits</string>
|
||||
<string name="reports_for">Report for</string>
|
||||
<string name="upload_anonymously">Upload anonymously</string>
|
||||
</resources>
|
||||
|
|
|
@ -1132,6 +1132,8 @@ public class OsmandSettings {
|
|||
public final CommonPreference<String> MAP_TILE_SOURCES = new StringPreference("map_tile_sources",
|
||||
TileSourceManager.getMapnikSource().getName()).makeGlobal();
|
||||
|
||||
public final CommonPreference<Boolean> SHOW_LAYER_TRANSPARENCY_SEEKBAR =
|
||||
new BooleanPreference("show_layer_transparency_seekbar", false).makeGlobal();
|
||||
|
||||
public CommonPreference<String> PREVIOUS_INSTALLED_VERSION = new StringPreference("previous_installed_version", "").makeGlobal();
|
||||
|
||||
|
|
|
@ -96,6 +96,8 @@ public class RasterMapMenu {
|
|||
} else if (itemId == R.string.show_polygons) {
|
||||
hidePolygonsPref.set(!isChecked);
|
||||
refreshMapComplete(mapActivity);
|
||||
} else if (itemId == R.string.show_transparency_seekbar) {
|
||||
settings.SHOW_LAYER_TRANSPARENCY_SEEKBAR.set(isChecked);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
@ -125,6 +127,8 @@ public class RasterMapMenu {
|
|||
contextMenuAdapter.item(R.string.show_polygons).listen(l)
|
||||
.selected(hidePolygonsPref.get() ? 0 : 1).reg();
|
||||
}
|
||||
contextMenuAdapter.item(R.string.show_transparency_seekbar).listen(l)
|
||||
.selected(settings.SHOW_LAYER_TRANSPARENCY_SEEKBAR.get() ? 0 : 1).reg();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue