Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Map in qml.. How to pin point a place in map



  • Here using this below code map view is integrated into application.
    Map {
    id: mapView
    anchors.fill: parent
    plugin: plugin
    property MapCircle circle

                Component.onCompleted: {
                    circle = Qt.createQmlObject('import QtLocation 5.3; MapCircle {}', page)
                    circle.center = positionSource.position.coordinate
                    circle.radius = 5000.0
                    circle.color = 'green'
                    circle.border.width = 3
                    map.addMapItem(circle)
                }
        }
    

    I don't know how to pin point a specific place in map. Help me to found the above.


Log in to reply