Feature/documentation maplibre map options (#2646)
Co-authored-by: Bart Louwers <bart.louwers@gmail.com>
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"/>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/main"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".activity.options.MapOptionsXmlActivity">
|
||||
|
||||
<org.maplibre.android.maps.MapView
|
||||
android:id="@+id/mapView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
app:maplibre_apiBaseUri="https://api.maplibre.org"
|
||||
app:maplibre_cameraBearing="0.0"
|
||||
app:maplibre_cameraPitchMax="90.0"
|
||||
app:maplibre_cameraPitchMin="0.0"
|
||||
app:maplibre_cameraTargetLat="42.31230486601532"
|
||||
app:maplibre_cameraTargetLng="64.63967338936439"
|
||||
app:maplibre_cameraTilt="0.0"
|
||||
app:maplibre_cameraZoom="3.9"
|
||||
app:maplibre_cameraZoomMax="26.0"
|
||||
app:maplibre_cameraZoomMin="2.0"
|
||||
app:maplibre_localIdeographFontFamilies="@array/array_local_ideograph_family_test"
|
||||
app:maplibre_localIdeographFontFamily="Droid Sans"
|
||||
app:maplibre_uiCompass="true"
|
||||
app:maplibre_uiCompassFadeFacingNorth="true"
|
||||
app:maplibre_uiCompassGravity="top|end"
|
||||
app:maplibre_uiDoubleTapGestures="true"
|
||||
app:maplibre_uiHorizontalScrollGestures="true"
|
||||
app:maplibre_uiRotateGestures="true"
|
||||
app:maplibre_uiScrollGestures="true"
|
||||
app:maplibre_uiTiltGestures="true"
|
||||
app:maplibre_uiZoomGestures="true" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -17,4 +17,5 @@
|
||||
<string name="category_location">Location</string>
|
||||
<string name="category_integration">_Integration</string>
|
||||
<string name="category_turf">Turf</string>
|
||||
<string name="category_map_options">Map Options</string>
|
||||
</resources>
|
||||
@@ -97,4 +97,6 @@
|
||||
<string name="description_nested_viewpager">Show a MapView inside a viewpager inside a recyclerView</string>
|
||||
<string name="description_performance_measurement">Show the use PerformanceEvent for performance measurements</string>
|
||||
<string name="description_physical_circle">Use TurfTransformation#circle() to show a Cirlce expressed in physical units</string>
|
||||
<string name="description_map_options_run_time">Learn How to use MapOptions to configure map</string>
|
||||
<string name="description_map_options_xml">Learn How to use custom map tags in xml to preconfigure MapView</string>
|
||||
</resources>
|
||||
|
||||
@@ -97,4 +97,6 @@
|
||||
<string name="activity_within">Within expression</string>
|
||||
<string name="activity_stretchable_image">Stretchable Image</string>
|
||||
<string name="activity_image_in_label">Image In Label</string>
|
||||
<string name="activity_map_options_runtime">MapOptions Runtime</string>
|
||||
<string name="activity_map_options_xml">MapOptions XML</string>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user