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

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

Inheritance diagram for SourceParameter:
LayerParameter

Properties

string m_type
 source type
 

Detailed Description

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

Additional source-specific properties can be set directly as QML properties to the instance of the SourceParameter.

id: radarSourceParam
styleId: "radar"
type: "image"
property string url: "https://maplibre.org/maplibre-gl-js/docs/assets/radar1.gif"
property var coordinates: [
[-80.425, 46.437],
[-71.516, 46.437],
[-71.516, 37.936],
[-80.425, 37.936]
]
}
Examples
example_Style.qml.