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 show 3D real buildings in QML maps
Forum Updated to NodeBB v4.3 + New Features

How to show 3D real buildings in QML maps

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 359 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.
  • Sadeq AlS Offline
    Sadeq AlS Offline
    Sadeq Al
    wrote on last edited by
    #1

    Hi everyone,

    I am using Mapbox to work with maps in *.qml. I wanna know if there is any 3D terrain real option like the one that works in iOS maps. The code part I have is,

    Map {
      id: map
    
    plugin: Plugin {
        name: "mapboxgl"
    
        PluginParameter {
            name: "mapboxgl.access_token";
            value: "pk.eyJ1IjoidGFudHJpZG8iLCJhIjoiY2tlYnB0YWo0MGFpczJzcnZubHRlNTAwbiJ9.6QG-4BeuCpUjaawDiyyfVg"
        }
    
        PluginParameter {
            name: "mapboxgl.mapping.additional_style_urls";
            value: "mapbox://styles/tantrido/ckyuch3ub001q16ofjwsxnlz6"
        }
    }
    
    MapParameter {
        type: "layer"
    
        property var name: "3d-buildings"
        property var source: "composite"
        property var sourceLayer: "building"
        property var layerType: "fill-extrusion"
        property var minzoom: 15.0
    }
    
    MapParameter {
        type: "filter"
    
        property var layer: "3d-buildings"
        property var filter: [ "==", "extrude", "true" ]
    }
    
    MapParameter {
        type: "paint"
    
        property var layer: "3d-buildings"
        property var fillExtrusionColor: "#55aaff"
        property var fillExtrusionOpacity: .6
        property var fillExtrusionHeight: { return { type: "identity", property: "height" } }
        property var fillExtrusionBase: { return { type: "identity", property: "min_height" } }
    

    This, however, is only a 3D object on any building, not the real one.
    And the one, I am looking for is like this,

    0615c47f-c755-4f84-91ef-ea84e93e53cc-map.jpeg

    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