-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnyatrace_map_point.qml
36 lines (32 loc) · 965 Bytes
/
nyatrace_map_point.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
import QtQuick
import QtLocation
import QtPositioning
MapItemGroup {
id: pointGroup
property real latitude: 34.7732
property real longitude: 113.722
property real accuracyRadius: 1000
property string themeColor: "#ff7163"
MapQuickItem {
sourceItem: Rectangle {
width: 14
height: 14
color: pointGroup.themeColor
border.width: 2
border.color: "white"
smooth: true
radius: 7
}
coordinate: QtPositioning.coordinate(pointGroup.latitude, pointGroup.longitude)
opacity: 1.0
anchorPoint: Qt.point(sourceItem.width/2, sourceItem.height/2)
}
MapCircle {
color: pointGroup.themeColor
opacity: 0.18
radius: pointGroup.accuracyRadius
center: QtPositioning.coordinate(pointGroup.latitude, pointGroup.longitude)
border.width: 3
border.color: pointGroup.themeColor
}
}