mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
Added support for MapView in Nearby
This commit is contained in:
parent
784b51e29d
commit
6118b57295
6 changed files with 120 additions and 5 deletions
16
app/src/main/res/layout/fragment_nearby_map.xml
Normal file
16
app/src/main/res/layout/fragment_nearby_map.xml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:mapbox="http://schemas.android.com/tools"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.mapbox.mapboxsdk.maps.MapView
|
||||
android:id="@+id/mapview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
mapbox:mapbox_cameraZoom="11"
|
||||
mapbox:mapbox_cameraTargetLat="50.0755"
|
||||
mapbox:mapbox_cameraTargetLng="14.4378"
|
||||
mapbox:mapbox_styleUrl="@string/style_mapbox_streets" />
|
||||
</LinearLayout>
|
||||
|
|
@ -167,4 +167,5 @@ Tap this message (or hit back) to skip this step.</string>
|
|||
<string name="beta_opt_in_link">https://play.google.com/apps/testing/fr.free.nrw.commons</string>
|
||||
<string name="use_wikidata">Use Wikidata</string>
|
||||
<string name="use_wikidata_summary">(Warning: disabling this may cause large mobile data consumption)</string>
|
||||
<string name="mapbox_commons_app_token">pk.eyJ1IjoibWFza2FyYXZpdmVrIiwiYSI6ImNqMmxvdzFjMTAwMHYzM283ZWM3eW5tcDAifQ.ib5SZ9EVjwJe6GSKve0bcg</string>
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue