[routing] Add possibility to save routes as tracks

Signed-off-by: cyber-toad <the.cyber.toad@proton.me>
This commit is contained in:
cyber-toad
2025-03-11 10:13:57 +01:00
committed by Konstantin Pastbin
parent 9e8accc8f5
commit 45bba5fb5e
16 changed files with 165 additions and 18 deletions

View File

@@ -73,6 +73,17 @@
android:drawableStart="@drawable/ic_manage_route"
android:drawablePadding="6dp"/>
<Button
android:id="@+id/btn__save"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0"
android:layout_gravity="center_vertical"
android:layout_marginStart="@dimen/margin_base"
android:minHeight="@dimen/primary_button_min_height"
style="@style/MwmWidget.Button"
android:text="@string/save"/>
<Button
android:id="@+id/start"
style="@style/MwmWidget.Button.Primary"
@@ -80,7 +91,7 @@
android:layout_height="wrap_content"
android:layout_weight="0"
android:layout_gravity="center_vertical"
android:layout_marginStart="@dimen/margin_base"
android:layout_marginStart="@dimen/margin_double"
android:minWidth="@dimen/start_button_width"
android:text="@string/p2p_start"
tools:showIn="@layout/menu_route_plan_line" />

View File

@@ -92,6 +92,15 @@
android:drawableStart="@drawable/ic_manage_route"
android:drawablePadding="6dp"/>
<Button
android:id="@+id/btn__save"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_base"
style="@style/MwmWidget.Button"
android:minHeight="@dimen/primary_button_min_height"
android:text="@string/save"/>
<Button
android:id="@+id/start"
style="@style/MwmWidget.Button.Primary"
@@ -99,7 +108,7 @@
android:layout_height="wrap_content"
android:layout_weight="0"
android:layout_gravity="center_vertical"
android:layout_marginStart="@dimen/margin_base"
android:layout_marginStart="@dimen/margin_double"
android:minWidth="@dimen/start_button_width"
android:text="@string/p2p_start"
tools:showIn="@layout/menu_route_plan_line" />

View File

@@ -83,13 +83,28 @@
android:layout_gravity="center_vertical" />
</LinearLayout>
<Button
android:id="@+id/btn__manage_route"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/MwmWidget.Button"
android:text="@string/planning_route_manage_route"
android:drawableStart="@drawable/ic_manage_route"
android:drawablePadding="6dp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical" >
<Button
android:id="@+id/btn__manage_route"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/MwmWidget.Button"
android:text="@string/planning_route_manage_route"
android:drawableStart="@drawable/ic_manage_route"
android:drawablePadding="6dp"/>
<Button
android:id="@+id/btn__save"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/MwmWidget.Button"
android:layout_marginStart="@dimen/margin_base"
android:minHeight="@dimen/primary_button_min_height"
android:text="@string/save"/>
</LinearLayout>
</LinearLayout>

View File

@@ -655,6 +655,7 @@
<string name="button_plan">Plan</string>
<string name="placepage_remove_stop">Remove Stop</string>
<string name="placepage_add_stop">Add Stop</string>
<string name="saved">Saved</string>
<!-- Alert to ask user relogin to OpenStreetMap with OAuth2 flow after OAuth1 authentication is deprecated. -->
<string name="alert_reauth_message">Please login to OpenStreetMap to automatically upload all your map edits. Learn more <a href="https://github.com/organicmaps/organicmaps/issues/6144">here</a>.</string>
<string name="dialog_error_storage_title">Storage access problem</string>