Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How can I mark my current position?
Forum Update on Monday, May 27th 2025

How can I mark my current position?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt5mapqml
4 Posts 2 Posters 609 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    deleted286
    wrote on last edited by
    #1

    Hi everyone. I want to mark my current position in a map. How can i do it?

    import QtQuick 2.12
    import QtQuick.Window 2.12
    import QtLocation 5.12
    import QtPositioning 5.12
    
    Window {
        id:win
        objectName: "window"
        width: 640
        height: 480
        visible: true
        title: qsTr("Map")
    
    
    
    PositionSource
    {
        id:positionSource
    }
    
    
        Map{
            id:map
            anchors.fill: parent
            activeMapType: map.supportedMapTypes[1]
            zoomLevel: 1
            plugin: Plugin {
                name: 'osm';
                PluginParameter {
                    name: 'osm.mapping.offline.directory'
                    value: ':/tiles/'
                }
            }
        }
    
    
    }
    
    ODБOïO 1 Reply Last reply
    0
    • D deleted286

      Hi everyone. I want to mark my current position in a map. How can i do it?

      import QtQuick 2.12
      import QtQuick.Window 2.12
      import QtLocation 5.12
      import QtPositioning 5.12
      
      Window {
          id:win
          objectName: "window"
          width: 640
          height: 480
          visible: true
          title: qsTr("Map")
      
      
      
      PositionSource
      {
          id:positionSource
      }
      
      
          Map{
              id:map
              anchors.fill: parent
              activeMapType: map.supportedMapTypes[1]
              zoomLevel: 1
              plugin: Plugin {
                  name: 'osm';
                  PluginParameter {
                      name: 'osm.mapping.offline.directory'
                      value: ':/tiles/'
                  }
              }
          }
      
      
      }
      
      ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on last edited by
      #2

      @suslucoder hi
      maybe https://doc.qt.io/qt-5/qml-qtpositioning-positionsource.html

      D 1 Reply Last reply
      0
      • ODБOïO ODБOï

        @suslucoder hi
        maybe https://doc.qt.io/qt-5/qml-qtpositioning-positionsource.html

        D Offline
        D Offline
        deleted286
        wrote on last edited by
        #3

        @LeLev it says

        serialnmea: No known GPS device found. Specify the COM port via QT_NMEA_SERIAL_PORT.
        
        ODБOïO 1 Reply Last reply
        0
        • D deleted286

          @LeLev it says

          serialnmea: No known GPS device found. Specify the COM port via QT_NMEA_SERIAL_PORT.
          
          ODБOïO Offline
          ODБOïO Offline
          ODБOï
          wrote on last edited by
          #4

          @suslucoder please have a look here https://doc.qt.io/qt-5/qtpositioning-index.html

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved