File tree 3 files changed +17
-6
lines changed
3 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 7
7
进入 QField (3.3 及以上版本)设置, 点开` 管理插件 ` > ` 从 URL 安装插件 ` , 输入本插件的 URL 地址:
8
8
9
9
``` text
10
- https://github.com/liuxspro/qfield-amap-nav/releases/download/v0.0.2 /qfield-amap-nav.zip
10
+ https://github.com/liuxspro/qfield-amap-nav/releases/download/v0.0.3 /qfield-amap-nav.zip
11
11
```
12
12
13
13
国内可使用 [ GitHub Proxy] ( https://mirror.ghproxy.com/ ) 代理加速:
14
14
15
15
``` text
16
- https://mirror.ghproxy.com/https://github.com/liuxspro/qfield-amap-nav/releases/download/v0.0.2 /qfield-amap-nav.zip
16
+ https://mirror.ghproxy.com/https://github.com/liuxspro/qfield-amap-nav/releases/download/v0.0.3 /qfield-amap-nav.zip
17
17
```
18
18
19
19
## 使用插件
Original file line number Diff line number Diff line change @@ -18,11 +18,22 @@ Item {
18
18
MenuItem {
19
19
id: amapnavto
20
20
width: parent .width
21
- text: qsTr (" 使用高德地图导航至此位置" )
22
21
height: 48
23
22
leftPadding: Theme .menuItemLeftPadding
24
- font: Theme .defaultFont
25
- icon .source : Theme .getThemeVectorIcon ( " ic_compass_arrow_24dp" ) // 如何自定义图标?
23
+
24
+ QfToolButton {
25
+ id: amapicon
26
+ iconSource: ' icon.svg'
27
+ }
28
+ Text {
29
+ id: amaptext
30
+ anchors .verticalCenter : parent .verticalCenter
31
+ leftPadding: Theme .menuItemLeftPadding + 36
32
+ text: qsTr (" 使用高德地图导航至此位置" )
33
+ font: Theme .defaultFont
34
+ color: Theme .mainTextColor
35
+ }
36
+
26
37
onTriggered: {
27
38
if (Qt .platform .os === ' android' )
28
39
{ // 将地图坐标转换为 WGS84 坐标
Original file line number Diff line number Diff line change @@ -3,5 +3,5 @@ name=AMAP NAV
3
3
description=在QField中使用高德地图进行导航
4
4
author=liuxs.pro
5
5
icon=icon.svg
6
- version=0.0.2
6
+ version=0.0.3
7
7
homepage=https://github.com/liuxspro/qfield-amap-nav
You can’t perform that action at this time.
0 commit comments