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. How to use route model with mapboxgl ?

How to use route model with mapboxgl ?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 568 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.
  • O Offline
    O Offline
    OKIP
    wrote on last edited by
    #1

    I already managed to create routes for osm plugin but with mapboxgl I get:
    error: Cannot route, route manager not set. from the RouteModel.
    So how can I set the route manager ?

    1 Reply Last reply
    0
    • O Offline
      O Offline
      OKIP
      wrote on last edited by
      #2

      Solved by using 2 plugins
      mapboxgl for Map and osm for RouteModel

      Plugin {
          name: "mapboxgl"
      
          PluginParameter {
              name: "osm.mapping.highdpi_tiles"
              value: true
          }
      
          PluginParameter {
              name: "mapboxgl.mapping.additional_style_urls"
              value: "mapbox://styles/mapbox/navigation-guidance-night-v3"
          }
      
          PluginParameter {
              name: "osm.routing.host"
              value: "http://router.project-osrm.org/route/v4/driving/"
          }
      
          PluginParameter {
              name: "osm.routing.apiversion"
              value: "v4"
          }
      }
      
      Plugin {
          name: "osm"
      }
      
      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