MapLibre Native for Qt
Loading...
Searching...
No Matches
LayerParameter Class Reference

A QML type for setting parameters of a layer. Generated from QMapLibre::LayerParameter and should be nested in a Style. More...

Inheritance diagram for LayerParameter:
SourceParameter

Properties

string type
 layer type
 
object layout
 layout properties as a dictionary
 
object paint
 paint properties as a dictionary
 
- Properties inherited from SourceParameter
string m_type
 source type
 

Detailed Description

A QML type for setting parameters of a layer. Generated from QMapLibre::LayerParameter and should be nested in a Style.

Additional layer-specific properties can be set directly as QML properties to the instance of the LayerParameter.

id: radarLayerParam
styleId: "radar-layer"
type: "raster"
property string source: "radar"
paint: {
"raster-opacity": 0.9
}
}
A QML type for setting parameters of a layer. Generated from QMapLibre::LayerParameter and should be ...
Definition LayerParameter.qml:13
A QML type for setting parameters of a source. Generated from QMapLibre::SourceParameter and should b...
Definition SourceParameter.qml:13
void addParameter(StyleParameter parameter)
Add a parameter programatically.
Examples
example_Style.qml.