Spaces:
Running
Running
feat: add coordinate input guide to custom coordinates UI
Browse files
app.py
CHANGED
|
@@ -530,8 +530,11 @@ def create_interface():
|
|
| 530 |
)
|
| 531 |
|
| 532 |
with gr.Group(visible=False) as custom_coords_group:
|
| 533 |
-
gr.Markdown(
|
| 534 |
-
"💡 **
|
|
|
|
|
|
|
|
|
|
| 535 |
)
|
| 536 |
with gr.Row():
|
| 537 |
custom_lat = gr.Number(
|
|
@@ -770,6 +773,17 @@ def create_interface():
|
|
| 770 |
gr.update(
|
| 771 |
label="Subtitle" if lang == "English" else "副标题 (Subtitle)",
|
| 772 |
placeholder="e.g. China or '2024.10.20'" if lang == "English" else "如: China 或 '2024.10.20'"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 773 |
)
|
| 774 |
)
|
| 775 |
|
|
@@ -802,6 +816,7 @@ def create_interface():
|
|
| 802 |
download_btn,
|
| 803 |
custom_city_name,
|
| 804 |
custom_country_name,
|
|
|
|
| 805 |
],
|
| 806 |
)
|
| 807 |
|
|
|
|
| 530 |
)
|
| 531 |
|
| 532 |
with gr.Group(visible=False) as custom_coords_group:
|
| 533 |
+
custom_coords_info = gr.Markdown(
|
| 534 |
+
"💡 **填写指南**:\n"
|
| 535 |
+
"- **纬度 (Latitude)**: 南北向坐标,范围 -90 至 90 (中国约 18~53)。\n"
|
| 536 |
+
"- **经度 (Longitude)**: 东西向坐标,范围 -180 至 180 (中国约 73~135)。\n\n"
|
| 537 |
+
"您可以访问 [坐标拾取系统](https://map.jiqrxx.com/jingweidu/) 获取精确数值。"
|
| 538 |
)
|
| 539 |
with gr.Row():
|
| 540 |
custom_lat = gr.Number(
|
|
|
|
| 773 |
gr.update(
|
| 774 |
label="Subtitle" if lang == "English" else "副标题 (Subtitle)",
|
| 775 |
placeholder="e.g. China or '2024.10.20'" if lang == "English" else "如: China 或 '2024.10.20'"
|
| 776 |
+
),
|
| 777 |
+
gr.update(
|
| 778 |
+
value="💡 **Guide**:\n"
|
| 779 |
+
"- **Latitude**: North-South, range -90 to 90 (China: ~18~53).\n"
|
| 780 |
+
"- **Longitude**: East-West, range -180 to 180 (China: ~73~135).\n\n"
|
| 781 |
+
"Use [Coordinate Picker](https://map.jiqrxx.com/jingweidu/) to find exact values."
|
| 782 |
+
if lang == "English" else
|
| 783 |
+
"💡 **填写指南**:\n"
|
| 784 |
+
"- **纬度 (Latitude)**: 南北向坐标,范围 -90 至 90 (中国约 18~53)。\n"
|
| 785 |
+
"- **经度 (Longitude)**: 东西向坐标,范围 -180 至 180 (中国约 73~135)。\n\n"
|
| 786 |
+
"您可以访问 [坐标拾取系统](https://map.jiqrxx.com/jingweidu/) 获取精确数值。"
|
| 787 |
)
|
| 788 |
)
|
| 789 |
|
|
|
|
| 816 |
download_btn,
|
| 817 |
custom_city_name,
|
| 818 |
custom_country_name,
|
| 819 |
+
custom_coords_info,
|
| 820 |
],
|
| 821 |
)
|
| 822 |
|