23 lines
493 B
QML
Executable File
23 lines
493 B
QML
Executable File
import QtQuick 2.0
|
|
import QtPositioning 5.12
|
|
import QtLocation 5.12
|
|
|
|
MapQuickItem{
|
|
property double lat: 0
|
|
property double lng: 0
|
|
|
|
id: mapMarker
|
|
anchorPoint.x: image.width/2
|
|
anchorPoint.y: image.height/2
|
|
|
|
sourceItem: Image {
|
|
id: image
|
|
source: "mss-symbol.png"
|
|
width: 250 / 4
|
|
height: 150 / 4
|
|
}
|
|
coordinate: QtPositioning.coordinate(lat,lng)
|
|
onLatChanged: coordinate.latitude = lat
|
|
onLngChanged: coordinate.longitude = lng
|
|
}
|