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. Mapbox GL plugin + ShaderEffect

Mapbox GL plugin + ShaderEffect

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

    Hi,

    I'm experiencing some quite weired issues when using mapboxgl plugin with ShaderEffect. The opacity is not applied on the layer.

    Here is the QML object I try to display on the map:

    import QtQuick 2.12
    import QtGraphicalEffects 1.0
    
    import QtLocation 5.15
    
    MapItemGroup {
    	MapItemView {
    		id: list
    		anchors.fill: parent
    		model: mySegmentModel
    
    		delegate: MapPolyline{
                           path: model.points
    	               line.width: 2
    	               line.color: model.color
    		}
    	}
    
    	ShaderEffectSource {
    		height: parent.height
    		width: parent.width
    		sourceItem: list
    		opacity: 0.3
    		hideSource: true
    	}
    }
    

    If I apply the opacity directly on the MapPolyline, it works well but as all polylines can cross each other, I got some bad effect. Furhermore with old mapbox plugin it was working correctly.

    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