-
Notifications
You must be signed in to change notification settings - Fork 0
/
amarker.qml
39 lines (34 loc) · 878 Bytes
/
amarker.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
37
38
39
import QtQuick 2.0
import QtQuick.Controls 2.0
import QtLocation 5.3
MapQuickItem {
id: marker
anchorPoint.x: marker.width / 4
anchorPoint.y: marker.height
property string labelText
sourceItem: Item
{
Image {
id: icon
source: "qrc:/marker.png"
sourceSize.width: 50
sourceSize.height: 50
}
Rectangle {
id: tag
anchors.centerIn: label
width: label.width + 4
height: label.height + 2
color: "black"
}
Label {
id: label
anchors.centerIn: parent
anchors.horizontalCenterOffset: 20
anchors.verticalCenterOffset: -12
font.pixelSize: 16
text: labelText
color: "white"
}
}
}