add VectorTileMap viewer

This commit is contained in:
Hannes Janetzek
2012-06-18 18:49:33 +02:00
committed by jeff
commit a30b54372b
33 changed files with 3351 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@drawable/btn_snap_pressed" />
<item android:state_checked="true" android:drawable="@drawable/btn_snap_selected" />
<item android:drawable="@drawable/btn_snap_normal" />
</selector>

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mainView"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<org.mapsforge.android.maps.MapView
android:id="@+id/mapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
<ToggleButton
android:id="@+id/snapToLocationView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_marginRight="10dip"
android:layout_marginTop="10dip"
android:background="@drawable/snap_to_position"
android:textOff=""
android:textOn=""
android:visibility="gone" />
</RelativeLayout>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<GridView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/filePickerView"
android:layout_width="fill_parent" android:layout_height="fill_parent" android:fadingEdge="vertical"
android:fadingEdgeLength="30dip" android:columnWidth="100dip" android:numColumns="auto_fit" />

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent" android:padding="20dip">
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content"
android:orientation="vertical">
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content"
android:text="@string/latitude" android:textStyle="bold" android:textColor="#FFF" />
<EditText android:id="@+id/latitude" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:maxLength="9" android:inputType="numberSigned|numberDecimal" />
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content"
android:text="@string/longitude" android:textStyle="bold" android:textColor="#FFF" />
<EditText android:id="@+id/longitude" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:maxLength="9" android:inputType="numberSigned|numberDecimal" />
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content"
android:text="@string/zoomLevel" android:textStyle="bold" android:textColor="#FFF" />
<SeekBar android:id="@+id/zoomLevel" android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<TextView android:id="@+id/zoomlevelValue" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:textStyle="bold" android:gravity="center_horizontal" />
</LinearLayout>
</ScrollView>

View File

@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:padding="20dip">
<LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical">
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/info_map_file_name"
android:textStyle="bold" android:textColor="#FFF" />
<TextView android:id="@+id/infoMapFileViewName" android:layout_width="fill_parent" android:layout_height="wrap_content"
android:paddingBottom="10dip" />
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/info_map_file_size"
android:textStyle="bold" android:textColor="#FFF" />
<TextView android:id="@+id/infoMapFileViewSize" android:layout_width="fill_parent" android:layout_height="wrap_content"
android:paddingBottom="10dip" />
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/info_map_file_version"
android:textStyle="bold" android:textColor="#FFF" />
<TextView android:id="@+id/infoMapFileViewVersion" android:layout_width="fill_parent" android:layout_height="wrap_content"
android:paddingBottom="10dip" />
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/info_map_file_debug"
android:textStyle="bold" android:textColor="#FFF" />
<TextView android:id="@+id/infoMapFileViewDebug" android:layout_width="fill_parent" android:layout_height="wrap_content"
android:paddingBottom="10dip" />
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/info_map_file_date"
android:textStyle="bold" android:textColor="#FFF" />
<TextView android:id="@+id/infoMapFileViewDate" android:layout_width="fill_parent" android:layout_height="wrap_content"
android:paddingBottom="10dip" />
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/info_map_file_area"
android:textStyle="bold" android:textColor="#FFF" />
<TextView android:id="@+id/infoMapFileViewArea" android:layout_width="fill_parent" android:layout_height="wrap_content"
android:paddingBottom="10dip" />
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/info_map_file_start_position"
android:textStyle="bold" android:textColor="#FFF" />
<TextView android:id="@+id/infoMapFileViewStartPosition" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:paddingBottom="10dip" />
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/info_map_file_start_zoom_level"
android:textStyle="bold" android:textColor="#FFF" />
<TextView android:id="@+id/infoMapFileViewStartZoomLevel" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:paddingBottom="10dip" />
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content"
android:text="@string/info_map_file_language_preference" android:textStyle="bold" android:textColor="#FFF" />
<TextView android:id="@+id/infoMapFileViewLanguagePreference" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:paddingBottom="10dip" />
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/info_map_file_comment"
android:textStyle="bold" android:textColor="#FFF" />
<TextView android:id="@+id/infoMapFileViewComment" android:layout_width="fill_parent" android:layout_height="wrap_content"
android:paddingBottom="10dip" />
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/info_map_file_created_by"
android:textStyle="bold" android:textColor="#FFF" />
<TextView android:id="@+id/infoMapFileViewCreatedBy" android:layout_width="fill_parent" android:layout_height="wrap_content"
android:paddingBottom="10dip" />
</LinearLayout>
</ScrollView>

25
res/menu/options_menu.xml Normal file
View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/menu_info" android:title="@string/menu_info" android:icon="@drawable/ic_menu_info_details" android:showAsAction="never">
<menu>
<item android:id="@+id/menu_info_map_file" android:title="@string/menu_info_map_file" />
</menu>
</item>
<item android:id="@+id/menu_position" android:title="@string/menu_position" android:icon="@drawable/ic_menu_mylocation" android:showAsAction="always">
<menu>
<item android:id="@+id/menu_position_my_location_enable" android:title="@string/menu_position_my_location_enable" />
<item android:id="@+id/menu_position_my_location_disable" android:title="@string/menu_position_my_location_disable" />
<item android:id="@+id/menu_position_last_known" android:title="@string/menu_position_last_known" />
<item android:id="@+id/menu_position_enter_coordinates" android:title="@string/menu_position_enter_coordinates" />
<item android:id="@+id/menu_position_map_center" android:title="@string/menu_position_map_file_center" />
</menu>
</item>
<item android:id="@+id/menu_preferences" android:title="@string/menu_preferences" android:icon="@drawable/ic_menu_preferences" android:showAsAction="never"/>
<item android:id="@+id/menu_render_theme" android:title="@string/menu_render_theme" android:icon="@drawable/ic_menu_mapmode" android:showAsAction="ifRoom">
<menu>
<item android:id="@+id/menu_render_theme_osmarender" android:title="@string/menu_render_theme_osmarender" />
<item android:id="@+id/menu_render_theme_select_file" android:title="@string/menu_render_theme_select_file" />
</menu>
</item>
<item android:id="@+id/menu_mapfile" android:title="@string/menu_mapfile" android:icon="@drawable/ic_menu_archive" android:showAsAction="always"/>
</menu>

104
res/values-de/strings.xml Executable file
View File

@@ -0,0 +1,104 @@
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string-array name="preferences_map_generator_values">
<item>Mapfile</item>
<item>PostGIS</item>
</string-array>
<string-array name="preferences_scale_bar_unit_values">
<item>angloamerikanisch</item>
<item>metrisch</item>
</string-array>
<string-array name="preferences_text_scale_values">
<item>winzig</item>
<item>klein</item>
<item>normal</item>
<item>groß</item>
<item>riesig</item>
</string-array>
<string name="application_name">VectorTileMap</string>
<string name="cancel">Abbrechen</string>
<string name="error">Fehler</string>
<string name="error_last_location_unknown">Die letzte Position ist unbekannt</string>
<string name="file_invalid">Die gewählte Datei ist ungültig.</string>
<string name="file_select">Bitte wählen Sie eine Datei.</string>
<string name="file_size_byte">byte</string>
<string name="file_size_bytes">bytes</string>
<string name="file_size_kb">kB</string>
<string name="file_size_mb">MB</string>
<string name="file_size_gb">GB</string>
<string name="go_to_position">Gehe zu Position</string>
<string name="info_map_file_area">Fläche</string>
<string name="info_map_file_comment">Kommentar</string>
<string name="info_map_file_created_by">Erzeugt von</string>
<string name="info_map_file_date">Datum</string>
<string name="info_map_file_debug">Debug-Informationen</string>
<string name="info_map_file_debug_no">nicht enthalten</string>
<string name="info_map_file_debug_yes">enthalten</string>
<string name="info_map_file_language_preference">Bevorzugte Sprache</string>
<string name="info_map_file_name">Datei</string>
<string name="info_map_file_size">Dateigröße</string>
<string name="info_map_file_start">Startposition</string>
<string name="info_map_file_start_position">Startposition</string>
<string name="info_map_file_start_zoom_level">Start-Zoomstufe</string>
<string name="info_map_file_version">Version</string>
<string name="latitude">Breitengrad</string>
<string name="longitude">Längengrad</string>
<string name="menu_info">Info</string>
<string name="menu_info_map_file">Kartendatei-Info</string>
<string name="menu_info_about">Über diese Software</string>
<string name="menu_mapfile">Kartendatei</string>
<string name="menu_position">Position</string>
<string name="menu_position_enter_coordinates">Koordinaten eingeben</string>
<string name="menu_position_last_known">Letzte bekannte Position</string>
<string name="menu_position_map_file_center">Zentrum der Kartendatei</string>
<string name="menu_position_my_location_enable">Meine Position anzeigen</string>
<string name="menu_position_my_location_disable">Meine Position entfernen</string>
<string name="menu_preferences">Einstellungen</string>
<string name="menu_render_theme">Render-Theme</string>
<string name="menu_render_theme_osmarender">Default Theme</string>
<string name="menu_render_theme_select_file">XML-Datei wählen …</string>
<string name="menu_screenshot">Screenshot</string>
<string name="menu_screenshot_jpeg">JPEG (verlustbehaftet)</string>
<string name="menu_screenshot_png">PNG (verlustlos)</string>
<string name="no_location_provider_available">Keine Standortquelle verfügbar</string>
<string name="ok">OK</string>
<string name="preferences_debug">Entwicklungs-Einstellungen</string>
<string name="preferences_general">Allgemeine Einstellungen</string>
<string name="preferences_cache_persistence">Cache-Persistenz</string>
<string name="preferences_cache_persistence_desc">Zwischenspeicher beim Beenden beibehalten</string>
<string name="preferences_cache_size">Externer Speicher</string>
<string name="preferences_cache_size_desc">Größe des Caches anpassen</string>
<string name="preferences_cache_size_value">%.1f MB</string>
<string name="preferences_fullscreen">Vollbildmodus</string>
<string name="preferences_fullscreen_desc">Verberge die Statusleiste</string>
<string name="preferences_map">Karteneinstellungen</string>
<string name="preferences_map_view_mode">Karten-Modus</string>
<string name="preferences_map_view_mode_desc">Arbeitsmodus der Karte auswählen</string>
<string name="preferences_move_speed">Scrollgeschwindigkeit</string>
<string name="preferences_move_speed_desc">Scrollgeschwindigkeit der Karte anpassen</string>
<string name="preferences_move_speed_value">%d %% Scrollgeschwindigkeit</string>
<string name="preferences_scale_bar_unit">Kartenmaßstabs-Einheit</string>
<string name="preferences_scale_bar_unit_desc">Einheit des Kartenmaßstabs auswählen</string>
<string name="preferences_show_fps_counter">Bildfrequenz</string>
<string name="preferences_show_fps_counter_desc">FPS-Zähler anzeigen</string>
<string name="preferences_show_scale_bar">Kartenmaßstab</string>
<string name="preferences_show_scale_bar_desc">Maßstabsbalken der Karte anzeigen</string>
<string name="preferences_show_tile_coordinates">Tile-Koordinaten</string>
<string name="preferences_show_tile_coordinates_desc">Koordinaten auf Kacheln malen</string>
<string name="preferences_show_tile_frames">Tile-Umrandungen</string>
<string name="preferences_show_tile_frames_desc">Rahmen um Tiles malen</string>
<string name="preferences_show_water_tiles">Wasser-Kacheln</string>
<string name="preferences_show_water_tiles_desc">Kacheln mit gesetztem Wasser-Bit hervorheben</string>
<string name="preferences_text_scale">Schriftgröße</string>
<string name="preferences_text_scale_desc">Basisgröße für Karten-Beschriftungen auswählen</string>
<string name="preferences_wake_lock">Aktiv bleiben</string>
<string name="preferences_wake_lock_desc">Abschaltung des Bildschirms verhindern</string>
<string name="snap_to_location_enabled">Snap to position ist aktiviert</string>
<string name="snap_to_location_disabled">Snap-to-Position ist deaktiviert</string>
<string name="unit_symbol_kilometer">&#160;km</string>
<string name="unit_symbol_meter">&#160;m</string>
<string name="zoomLevel">Zoomstufe</string>
</resources>

96
res/values-fi/strings.xml Normal file
View File

@@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string-array name="preferences_map_generator_values">
<item>Mapfile</item>
<item>PostGIS</item>
</string-array>
<string-array name="preferences_text_scale_values">
<item>hyvin pieni</item>
<item>pieni</item>
<item>normaali</item>
<item>suuri</item>
<item>hyvin suuri</item>
</string-array>
<string name="application_name">VectorTileMap</string>
<string name="cancel">Peruuta</string>
<string name="error">Virhe</string>
<string name="error_last_location_unknown">Viimeinen sijainti ei ole tiedossa</string>
<string name="file_invalid">Valittu tiedosto ei ole kelvollinen karttatiedosto.</string>
<string name="file_select">Valitse karttatiedosto.</string>
<string name="file_size_byte">tavu</string>
<string name="file_size_bytes">tavua</string>
<string name="file_size_kb">kB</string>
<string name="file_size_mb">MB</string>
<string name="file_size_gb">GB</string>
<string name="go_to_position">Mene sijaintiin</string>
<string name="info_map_file_area">Alue</string>
<string name="info_map_file_comment">Kommentti</string>
<string name="info_map_file_date">Päivämäärä</string>
<string name="info_map_file_debug">Debuggaustietoja</string>
<string name="info_map_file_debug_no">ei sisälletty</string>
<string name="info_map_file_debug_yes">sisälletty</string>
<string name="info_map_file_language_preference">Suosittu kieli</string>
<string name="info_map_file_name">Tiedosto</string>
<string name="info_map_file_size">Tiedoston koko</string>
<string name="info_map_file_start">Aloitussijainti</string>
<string name="info_map_file_start_position">Aloitussijainti</string>
<string name="info_map_file_start_zoom_level">Aloituszoomaustaso</string>
<string name="info_map_file_version">Versio</string>
<string name="latitude">Leveyspiiri</string>
<string name="longitude">Pituuspiiri</string>
<string name="menu_info">Info</string>
<string name="menu_info_map_file">Karttatiedoston ominaisuudet</string>
<string name="menu_info_about">Tästä ohjelmasta</string>
<string name="menu_mapfile">Karttatiedosto</string>
<string name="menu_position">Sijainti</string>
<string name="menu_position_enter_coordinates">Anna koordinaatit</string>
<string name="menu_position_last_known">Viimeinen tunnettu sijainti</string>
<string name="menu_position_map_file_center">Karttatiedoston keskipiste</string>
<string name="menu_position_my_location_enable">Näytä sijaintini</string>
<string name="menu_position_my_location_disable">Poista sijaintini</string>
<string name="menu_preferences">Suositukset</string>
<string name="menu_render_theme">Render theme</string>
<string name="menu_render_theme_osmarender">Default Theme</string>
<string name="menu_render_theme_select_file">Valitse XML tiedosto …</string>
<string name="menu_screenshot">Screenshot</string>
<string name="menu_screenshot_jpeg">JPEG (häviöllinen)</string>
<string name="menu_screenshot_png">PNG (häviötön)</string>
<string name="no_location_provider_available">Sijaintilähde ei ole käytettävissä</string>
<string name="ok">OK</string>
<string name="preferences_debug">Debuggausasetukset</string>
<string name="preferences_general">Yleiset asetukset</string>
<string name="preferences_cache_persistence">Välimuistin pysyvyys</string>
<string name="preferences_cache_persistence_desc">Pitää välimuistin lopettaessa</string>
<string name="preferences_cache_size">Ulkopuolinen muisti</string>
<string name="preferences_cache_size_desc">Säädä välimuistin kokoa</string>
<string name="preferences_cache_size_value">%.1f MB</string>
<string name="preferences_fullscreen">Kokoruututila</string>
<string name="preferences_fullscreen_desc">Piilota tilapalkki</string>
<string name="preferences_map">Kartta-asetukset</string>
<string name="preferences_map_view_mode">Kartta-asetus</string>
<string name="preferences_map_view_mode_desc">Valitse toiminta-asetus</string>
<string name="preferences_move_speed">Liikkumisnopeus</string>
<string name="preferences_move_speed_desc">Säädä kartan liikkumisnopeutta</string>
<string name="preferences_move_speed_value">%d %% liikkumisnopeus</string>
<string name="preferences_show_fps_counter">Kehysnopeus</string>
<string name="preferences_show_fps_counter_desc">Salli kehyksen sekunttilaskin</string>
<string name="preferences_show_scale_bar">Kartan mittakaava</string>
<string name="preferences_show_scale_bar_desc">Näytä kartan mittakaava</string>
<string name="preferences_show_tile_coordinates">Laattakoordinaatit</string>
<string name="preferences_show_tile_coordinates_desc">Näytä koordinaatit laatalla</string>
<string name="preferences_show_tile_frames">Laattarajat</string>
<string name="preferences_show_tile_frames_desc">Piirrä laattarajat</string>
<string name="preferences_show_water_tiles">Vesilaatat</string>
<string name="preferences_show_water_tiles_desc">Korostaa vettä sisältävät laatat</string>
<string name="preferences_text_scale">Fonttikoko</string>
<string name="preferences_text_scale_desc">Valitse karttamerkintöjen tekstikoko</string>
<string name="preferences_wake_lock">Pysyy aktiivisena</string>
<string name="preferences_wake_lock_desc">Estää kuvaruudun himmenemisen</string>
<string name="snap_to_location_enabled">Kohdista sijainti on aktivoitu</string>
<string name="snap_to_location_disabled">Kohdista sijainti on deaktivoitu</string>
<string name="unit_symbol_kilometer">&#160;km</string>
<string name="unit_symbol_meter">&#160;m</string>
<string name="zoomLevel">Zoomaustaso</string>
</resources>

95
res/values-it/strings.xml Executable file
View File

@@ -0,0 +1,95 @@
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string-array name="preferences_map_generator_values">
<item>Mapfile</item>
<item>PostGIS</item>
</string-array>
<string-array name="preferences_text_scale_values">
<item>minuscola</item>
<item>piccola</item>
<item>normale</item>
<item>grande</item>
<item>enorme</item>
</string-array>
<string name="application_name">VectorTileMap</string>
<string name="cancel">Annulla</string>
<string name="error">Errore</string>
<string name="error_last_location_unknown">L\'ultima posizione è sconosciuta</string>
<string name="file_invalid">Il file selezionato non è valido.</string>
<string name="file_select">Si prega di selezionare un file.</string>
<string name="file_size_byte">byte</string>
<string name="file_size_bytes">bytes</string>
<string name="file_size_kb">kB</string>
<string name="file_size_mb">MB</string>
<string name="file_size_gb">GB</string>
<string name="go_to_position">Vai alla posizione</string>
<string name="info_map_file_area">Area</string>
<string name="info_map_file_comment">Commento</string>
<string name="info_map_file_date">Data</string>
<string name="info_map_file_debug">Informazioni di debug</string>
<string name="info_map_file_debug_no">non incluso</string>
<string name="info_map_file_debug_yes">incluso</string>
<string name="info_map_file_language_preference">Preferenza di lingua</string>
<string name="info_map_file_name">File</string>
<string name="info_map_file_size">Grandezza del file</string>
<string name="info_map_file_start_position">Punto di partenza</string>
<string name="info_map_file_start_zoom_level">Inizio zoom</string>
<string name="info_map_file_version">Versione</string>
<string name="latitude">Grado di latitudine</string>
<string name="longitude">Meridiano</string>
<string name="menu_info">Info</string>
<string name="menu_info_map_file">Informazioni sul file mappa</string>
<string name="menu_info_about">A proposito di questo software</string>
<string name="menu_mapfile">Mappa</string>
<string name="menu_position">Posizione</string>
<string name="menu_position_enter_coordinates">Inserisci le coordinate</string>
<string name="menu_position_last_known">Ultima posizione nota</string>
<string name="menu_position_map_file_center">Centro della mappa</string>
<string name="menu_position_my_location_enable">Mostra la mia posizione</string>
<string name="menu_position_my_location_disable">Rimuovere la mia posizione</string>
<string name="menu_preferences">Impostazioni</string>
<string name="menu_render_theme">Render modi</string>
<string name="menu_render_theme_osmarender">Default Theme</string>
<string name="menu_render_theme_select_file">Selezionare un file XML …</string>
<string name="menu_screenshot">Screenshot</string>
<string name="menu_screenshot_jpeg">JPEG (con perdita di dati)</string>
<string name="menu_screenshot_png">PNG (senza perdita di dati)</string>
<string name="no_location_provider_available">Nessuna operatore per posizione disponibile</string>
<string name="ok">OK</string>
<string name="preferences_debug">Impostazioni sviluppo</string>
<string name="preferences_general">Impostazioni generali</string>
<string name="preferences_cache_persistence">Persistenza cache</string>
<string name="preferences_cache_persistence_desc">Mantenere il cache in uscita</string>
<string name="preferences_cache_size">Memoria esterna</string>
<string name="preferences_cache_size_desc">Impostare la dimensione della cache</string>
<string name="preferences_cache_size_value">%.1f MB</string>
<string name="preferences_fullscreen">A schermo intero</string>
<string name="preferences_fullscreen_desc">Nascondere la barra di stato</string>
<string name="preferences_map">Impostazioni mappa</string>
<string name="preferences_map_view_mode">Modalitá della mappa</string>
<string name="preferences_map_view_mode_desc">Selezionare la modalità della mappa</string>
<string name="preferences_move_speed">Velocità di scorrimento</string>
<string name="preferences_move_speed_desc">Impostare velocità di scorrimento della mappa</string>
<string name="preferences_move_speed_value">%d %% velocità di scorrimento</string>
<string name="preferences_show_fps_counter">Frame rate</string>
<string name="preferences_show_fps_counter_desc">Visualizzare contatore di frame rate</string>
<string name="preferences_show_scale_bar">Scala della mappa</string>
<string name="preferences_show_scale_bar_desc">Visualizzare barra della scala della mappa</string>
<string name="preferences_show_tile_coordinates">Coordinate del Tile</string>
<string name="preferences_show_tile_coordinates_desc">Dipingere le coordinate sul Tile</string>
<string name="preferences_show_tile_frames">Bordare del Tile</string>
<string name="preferences_show_tile_frames_desc">Dipingere bordare attorno Tile</string>
<string name="preferences_show_water_tiles">Tiles di acqua</string>
<string name="preferences_show_water_tiles_desc">Accentare i Tiles con acqua-bit</string>
<string name="preferences_text_scale">Grandezza del carattere</string>
<string name="preferences_text_scale_desc">Scegli la grandezza standard per le diciture della mappa</string>
<string name="preferences_wake_lock">Rimanere attivo</string>
<string name="preferences_wake_lock_desc">Impedisce la chiusura dello schermo</string>
<string name="snap_to_location_enabled">Scatto alla posizione è attivato</string>
<string name="snap_to_location_disabled">Scatto alla posizione è disattivato</string>
<string name="unit_symbol_kilometer">&#160;km</string>
<string name="unit_symbol_meter">&#160;m</string>
<string name="zoomLevel">Livello di zoom</string>
</resources>

23
res/values/arrays.xml Normal file
View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string-array name="preferences_map_database_keys">
<item>MAP_READER</item>
<item>POSTGIS_READER</item>
</string-array>
<string name="preferences_map_database_default">MAP_READER</string>
<string-array name="preferences_scale_bar_unit_keys">
<item>imperial</item>
<item>metric</item>
</string-array>
<string name="preferences_scale_bar_unit_default">metric</string>
<string-array name="preferences_text_scale_keys">
<item>0.7</item>
<item>0.85</item>
<item>1.0</item>
<item>1.3</item>
<item>1.6</item>
</string-array>
<string name="preferences_text_scale_default">1.0</string>
</resources>

103
res/values/strings.xml Executable file
View File

@@ -0,0 +1,103 @@
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string-array name="preferences_map_generator_values">
<item>Mapfile</item>
<item>PostGIS</item>
</string-array>
<string-array name="preferences_scale_bar_unit_values">
<item>Imperial</item>
<item>Metric</item>
</string-array>
<string-array name="preferences_text_scale_values">
<item>tiny</item>
<item>small</item>
<item>normal</item>
<item>large</item>
<item>huge</item>
</string-array>
<string name="application_name">VectorTileMap</string>
<string name="cancel">Cancel</string>
<string name="error">Error</string>
<string name="error_last_location_unknown">The last location is unknown</string>
<string name="file_invalid">The selected file is invalid.</string>
<string name="file_select">Please select a file.</string>
<string name="file_size_byte">byte</string>
<string name="file_size_bytes">bytes</string>
<string name="file_size_kb">kB</string>
<string name="file_size_mb">MB</string>
<string name="file_size_gb">GB</string>
<string name="go_to_position">Go to position</string>
<string name="info_map_file_area">Area</string>
<string name="info_map_file_comment">Comment</string>
<string name="info_map_file_created_by">Created by</string>
<string name="info_map_file_date">Date</string>
<string name="info_map_file_debug">Debug information</string>
<string name="info_map_file_debug_no">not included</string>
<string name="info_map_file_debug_yes">included</string>
<string name="info_map_file_language_preference">Language preference</string>
<string name="info_map_file_name">File</string>
<string name="info_map_file_size">File size</string>
<string name="info_map_file_start_position">Start position</string>
<string name="info_map_file_start_zoom_level">Start zoom level</string>
<string name="info_map_file_version">Version</string>
<string name="latitude">Latitude</string>
<string name="longitude">Longitude</string>
<string name="menu_info">Info</string>
<string name="menu_info_map_file">Map file properties</string>
<string name="menu_info_about">About this software</string>
<string name="menu_mapfile">Map file</string>
<string name="menu_position">Position</string>
<string name="menu_position_enter_coordinates">Enter coordinates</string>
<string name="menu_position_last_known">Last known location</string>
<string name="menu_position_map_file_center">Map file center</string>
<string name="menu_position_my_location_enable">Show my location</string>
<string name="menu_position_my_location_disable">Remove my location</string>
<string name="menu_preferences">Preferences</string>
<string name="menu_render_theme">Render theme</string>
<string name="menu_render_theme_osmarender">Default Theme</string>
<string name="menu_render_theme_select_file">Select XML file …</string>
<string name="menu_screenshot">Screenshot</string>
<string name="menu_screenshot_jpeg">JPEG (lossy)</string>
<string name="menu_screenshot_png">PNG (lossless)</string>
<string name="no_location_provider_available">No location source available</string>
<string name="ok">OK</string>
<string name="preferences_debug">Debug settings</string>
<string name="preferences_general">General settings</string>
<string name="preferences_cache_persistence">Cache persistence</string>
<string name="preferences_cache_persistence_desc">Keep cached images on exit</string>
<string name="preferences_cache_size">External storage</string>
<string name="preferences_cache_size_desc">Adjust the size of the cache</string>
<string name="preferences_cache_size_value">%.1f MB</string>
<string name="preferences_fullscreen">Full screen mode</string>
<string name="preferences_fullscreen_desc">Hide the status bar</string>
<string name="preferences_map">Map settings</string>
<string name="preferences_map_view_mode">Map mode</string>
<string name="preferences_map_view_mode_desc">Select the operating mode</string>
<string name="preferences_move_speed">Move speed</string>
<string name="preferences_move_speed_desc">Adjust the move speed of the map</string>
<string name="preferences_move_speed_value">%d %% move speed</string>
<string name="preferences_scale_bar_unit">Scale bar unit</string>
<string name="preferences_scale_bar_unit_desc">Select the unit for the map scale bar</string>
<string name="preferences_show_fps_counter">Frame rate</string>
<string name="preferences_show_fps_counter_desc">Enable frames per second counter</string>
<string name="preferences_show_scale_bar">Map scale bar</string>
<string name="preferences_show_scale_bar_desc">Show the scale of the map</string>
<string name="preferences_show_tile_coordinates">Tile coordinates</string>
<string name="preferences_show_tile_coordinates_desc">Show coordinates on tiles</string>
<string name="preferences_show_tile_frames">Tile boundaries</string>
<string name="preferences_show_tile_frames_desc">Draw tile boundaries</string>
<string name="preferences_disable_polygons">Disable Polygon rendering</string>
<string name="preferences_show_water_tiles_desc">Highlight tiles which have the water flag set</string>
<string name="preferences_text_scale">Font size</string>
<string name="preferences_text_scale_desc">Select the text size of map labels</string>
<string name="preferences_wake_lock">Stay awake</string>
<string name="preferences_wake_lock_desc">Stop the screen from dimming</string>
<string name="snap_to_location_enabled">Snap to position is activated</string>
<string name="snap_to_location_disabled">Snap to position is disabled</string>
<string name="unit_symbol_kilometer">&#160;km</string>
<string name="unit_symbol_meter">&#160;m</string>
<string name="zoomLevel">Zoom level</string>
</resources>

40
res/xml/preferences.xml Normal file
View File

@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" android:title="@string/menu_preferences">
<PreferenceCategory android:title="@string/preferences_map">
<!-- <CheckBoxPreference android:title="@string/preferences_show_scale_bar" android:summary="@string/preferences_show_scale_bar_desc"
android:key="showScaleBar" /> -->
<!-- <ListPreference android:title="@string/preferences_scale_bar_unit" android:summary="@string/preferences_scale_bar_unit_desc"
android:entryValues="@array/preferences_scale_bar_unit_keys" android:entries="@array/preferences_scale_bar_unit_values"
android:key="scaleBarUnit" android:defaultValue="@string/preferences_scale_bar_unit_default" android:dependency="showScaleBar" /> -->
<ListPreference android:title="@string/preferences_map_view_mode" android:summary="@string/preferences_map_view_mode_desc"
android:entryValues="@array/preferences_map_database_keys" android:entries="@array/preferences_map_generator_values"
android:key="mapDatabase" android:defaultValue="@string/preferences_map_database_default" />
<!-- <ListPreference android:title="@string/preferences_text_scale" android:summary="@string/preferences_text_scale_desc"
android:entryValues="@array/preferences_text_scale_keys" android:entries="@array/preferences_text_scale_values"
android:key="textScale" android:defaultValue="@string/preferences_text_scale_default" /> -->
</PreferenceCategory>
<PreferenceCategory android:title="@string/preferences_general">
<CheckBoxPreference android:title="@string/preferences_fullscreen" android:summary="@string/preferences_fullscreen_desc"
android:key="fullscreen" />
<CheckBoxPreference android:title="@string/preferences_wake_lock" android:summary="@string/preferences_wake_lock_desc"
android:key="wakeLock" />
<!-- <CheckBoxPreference android:title="@string/preferences_cache_persistence" android:summary="@string/preferences_cache_persistence_desc"
android:key="cachePersistence" />
<de.sfb.pampa.preferences.CacheSizePreference
android:title="@string/preferences_cache_size" android:summary="@string/preferences_cache_size_desc" android:key="cacheSize" />
<de.sfb.pampa.preferences.MoveSpeedPreference
android:title="@string/preferences_move_speed" android:summary="@string/preferences_move_speed_desc" android:key="moveSpeed" /> -->
</PreferenceCategory>
<PreferenceCategory android:title="@string/preferences_debug">
<!-- <CheckBoxPreference android:title="@string/preferences_show_fps_counter" android:summary="@string/preferences_show_fps_counter_desc"
android:key="showFpsCounter" /> -->
<CheckBoxPreference android:title="@string/preferences_show_tile_frames" android:summary="@string/preferences_show_tile_frames_desc"
android:key="drawTileFrames" />
<!-- <CheckBoxPreference android:title="@string/preferences_show_tile_coordinates" android:summary="@string/preferences_show_tile_coordinates_desc"
android:key="drawTileCoordinates" /> -->
<CheckBoxPreference android:title="@string/preferences_disable_polygons" android:summary="@string/preferences_disable_polygons"
android:key="disablePolygons" />
</PreferenceCategory>
</PreferenceScreen>