MapLibre Native for Qt
Loading...
Searching...
No Matches
QMapLibre Location

Qt Location plugin for MapLibre with the ID maplibre. More...

Classes

class  LayerParameter
 A QML type for setting parameters of a layer. Generated from QMapLibre::LayerParameter and should be nested in a Style. More...
 
class  SourceParameter
 A QML type for setting parameters of a source. Generated from QMapLibre::SourceParameter and should be nested in a Style. More...
 
class  Style
 A QML helper item to be attached to a MapView using MapLibre.style property. More...
 
class  StyleParameter
 A base QML type for style parameters and is not intended to be used directly. More...
 

Detailed Description

Qt Location plugin for MapLibre with the ID maplibre.

The Qt Location QML plugin can be set with the Plugin instance.

Plugin {
id: mapPlugin
name: "maplibre"
PluginParameter {
name: "maplibre.map.styles"
value: "https://demotiles.maplibre.org/style.json"
}
}

Additional style properties can be attached to the map. For that import MapLibre 3.0 is needed. See Style for more details.

MapView {
id: mapView
anchors.fill: parent
map.plugin: mapPlugin
map.zoomLevel: 5
map.center: QtPositioning.coordinate(41.874, -75.789)
MapLibre.style: Style {
id: style
}
}
A QML helper item to be attached to a MapView using MapLibre.style property.
Definition Style.qml:21