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. [QT][QML][MAPBOX] Placeolder and route inside a map
Qt 6.11 is out! See what's new in the release blog

[QT][QML][MAPBOX] Placeolder and route inside a map

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 222 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.
  • S Offline
    S Offline
    Shadow.01
    wrote on last edited by
    #1

    Dear users,

    in my QML view in a QT 5 project I have the following code, which creates a Mapbox map; all works perfectly.

    Plugin {
            id: mapboxglPlugin
            name: "mapboxgl"
        }
        
    Map {
            anchors.fill: parent
            plugin: mapboxglPlugin
            center: QtPositioning.coordinate(59.91, 10.75) // Oslo
            zoomLevel: 14
        }
    

    Now, I want add:

    1. A placeholder / image in order to show the desired position on this map
    2. A route, made by a series of segments

    How can I do this? I searched in several search engines but I only found the way to show different layers but not what I am searching for.

    Thank to all in advance!

    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