Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-69439

app crashing when I change minzoom in 3d-building layer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 5.10.1
    • None
    • Linux 64Bit, Qt 5.10.1 with V-Play framework (if that matters)

    Description

      Hi

      I'm using mapboxgl in Qt QML application (5.10.1), I have app based on this example:

      https://github.com/tmpsantos/qmapboxglapp/tree/tmpsantos-cheapruler

      There is layer with 3D buildings

       

       MapParameter {
                      type: "layer"
      
                      property var name: "3d-buildings"
                      property var source: "composite"
                      property var sourceLayer: "building"
                      property var layerType: "fill-extrusion"
                      property var minzoom: mapPage.buildingZoom
                  }
      
                  MapParameter {
                      type: "filter"
      
                      property var layer: "3d-buildings"
                      property var filter: [ "==", "extrude", "true" ]
                  }
      
                  MapParameter {
                      type: "paint"
      
                      property var layer: "3d-buildings"
                      property var fillExtrusionColor: "#00617f"
                      property var fillExtrusionOpacity: .6
                      property var fillExtrusionHeight: { return { type: "identity", property: "height" } }
                      property var fillExtrusionBase: { return { type: "identity", property: "min_height" } }
                  }
      

       

      I have bound minzoom to mapPage.buildingZoom property so I thought I could change this layer visibility but when I change mapPage.buildingZoom property app is crashing with an error:

       

       terminate called after throwing an instance of 'std::runtime_error' what(): Layer 3d-buildings already exists
      

       

      Best Regards

      Marek 

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tmpsantos Thiago Marcos P. Santos
            frankipl Marek Floriańczyk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes