C
Qt Quick Ultralite map example
// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial
import QtQuick
import QtLocation
import QtPositioning
MapQuickItem {
id: root
property real latitude
property real longitude
property alias markerText: markerText.text
property alias imageSource: markerImage.source
sourceItem: Image {
id: markerImage
source: ""
Text {
id: markerText
text: ""
font.pointSize: 7
font.bold: true
anchors.bottom: parent.top
anchors.horizontalCenter: parent.horizontalCenter
}
}
coordinate {
latitude: root.latitude
longitude: root.longitude
}
anchorPoint: Qt.point(sourceItem.width / 2, sourceItem.height / 2)
}