Choose map projection in settings
This commit is contained in:
16
app/src/main/res/drawable/map.xml
Normal file
16
app/src/main/res/drawable/map.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<vector
|
||||
android:height="24dp"
|
||||
android:viewportHeight="24"
|
||||
android:viewportWidth="24"
|
||||
android:width="24dp"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<path
|
||||
android:fillColor="?attr/colorOnBackground"
|
||||
android:pathData="M15,5.1L9,3 3,5.02v16.2l6,-2.33 6,2.1 6,-2.02L21,2.77L15,5.1z" />
|
||||
|
||||
<path
|
||||
android:fillColor="?attr/colorPrimary"
|
||||
android:pathData="M15,18.89l-6,-2.11L9,5.11l6,2.11v11.67z"/>
|
||||
|
||||
</vector>
|
@ -15,4 +15,14 @@
|
||||
<item>@string/on</item>
|
||||
<item>@string/off</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="map_projection">
|
||||
<item>@string/azimuthalequidistant</item>
|
||||
<item>@string/equirectangular</item>
|
||||
<item>@string/equidistant</item>
|
||||
<item>@string/mercator</item>
|
||||
<item>@string/loximuthal</item>
|
||||
<item>@string/webmercator</item>
|
||||
|
||||
</string-array>
|
||||
</resources>
|
||||
|
@ -37,4 +37,11 @@
|
||||
<string name="ok">Ok</string>
|
||||
<string name="total">Total</string>
|
||||
<string name="uncategorized">Uncategorized</string>
|
||||
<string name="azimuthalequidistant">Azimuthal Equidistant</string>
|
||||
<string name="equirectangular">Equirectangular</string>
|
||||
<string name="equidistant">Equidistant</string>
|
||||
<string name="mercator">Mercator</string>
|
||||
<string name="loximuthal">Loximuthal</string>
|
||||
<string name="webmercator">Web Mercator</string>
|
||||
<string name="key_projection">Map Projection</string>
|
||||
</resources>
|
@ -13,6 +13,16 @@
|
||||
app:title="@string/key_theme"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
|
||||
<ListPreference
|
||||
app:defaultValue="@string/webmercator"
|
||||
app:enabled="true"
|
||||
app:entries="@array/map_projection"
|
||||
app:entryValues="@array/map_projection"
|
||||
app:icon="@drawable/map"
|
||||
app:key="@string/key_projection"
|
||||
app:title="@string/key_projection"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
|
||||
<ListPreference
|
||||
app:defaultValue="@string/counters"
|
||||
app:enabled="true"
|
||||
|
Reference in New Issue
Block a user