Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Plotting 3D Polyline on QML Map
Forum Updated to NodeBB v4.3 + New Features

Plotting 3D Polyline on QML Map

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 4 Posters 2.0k Views 4 Watching
  • 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.
  • VigastoV Offline
    VigastoV Offline
    Vigasto
    wrote on last edited by
    #1

    I am currently trying to use the Map QML to display a set of coordinates with the minimal map example, but adding altitude as I found out Qt Coordinate holds one. This was meant to simulate flight trajectory paths from GPS data.

            Map {
                anchors.fill: parent
                plugin: mapPlugin
                center: QtPositioning.coordinate(59.91, 10.75) // Oslo
                zoomLevel: 10
                tilt: 90
                MapPolyline {
                    line.width: 3
                    line.color: 'green'
                    path: [
                        { latitude: 59.91, longitude: 10.75 , altitude: 100},
                        { latitude: 59.92, longitude: 10.75001, altitude: 125},
                        { latitude: 59.93, longitude: 10.75002, altitude: 1000 },
                        { latitude: 59.94, longitude: 10.74998, altitude: 20000000 }
                    ]
                }
            }
    

    However, the resulting polyline was rather snaps on to the map, as if the altitude were all set to zero

    0_1520171694630_53e5d014-485b-4183-9f8d-3e898846b0ce-image.png

    Is this is the expected result or is there any wrongdoings in my part? If this is intended, is there any other feature in Qt to help me project 3D trajectory on maps?

    1 Reply Last reply
    0
    • VigastoV Offline
      VigastoV Offline
      Vigasto
      wrote on last edited by
      #2

      This is what I'm currently expecting to. The map is fine being 2D.

      0_1520563420966_53869e51-124a-4c5e-8685-51bffaad141b-image.png

      M 1 Reply Last reply
      0
      • VigastoV Vigasto

        This is what I'm currently expecting to. The map is fine being 2D.

        0_1520563420966_53869e51-124a-4c5e-8685-51bffaad141b-image.png

        M Offline
        M Offline
        martal
        wrote on last edited by
        #3

        I'm also interested in the same thing. @Vigasto have you figured out a solution yet? Did you write a custom plugin?

        1 Reply Last reply
        0
        • M Offline
          M Offline
          ManuelYG
          wrote on last edited by
          #4

          Hi @martal, hi @Vigasto,
          I have the same kind of needs. I did quite a lot of googling and as weird as it is, it looks like a not so common problem. Did you find a solution ?

          1 Reply Last reply
          0
          • V Offline
            V Offline
            VinamraKumarJha
            wrote on last edited by
            #5

            hi @martal , @Vigasto & @ManuelYG I'm also looking for something same
            has anyone of you found the solution yet ?

            1 Reply Last reply
            0

            • Login

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