|
|
|
@ -28,12 +28,17 @@ ApplicationWindow {
|
|
|
|
|
|
|
|
|
|
Plugin {
|
|
|
|
|
id: mapPlugin
|
|
|
|
|
name: "mapboxgl" // "mapboxgl", "esri", ...
|
|
|
|
|
name: "osm" // "mapboxgl", "esri", ...
|
|
|
|
|
// specify plugin parameters if necessary
|
|
|
|
|
PluginParameter {
|
|
|
|
|
name: "access_token"
|
|
|
|
|
value: "pk.eyJ1Ijoia3ViYS1vcmxpayIsImEiOiJja2plYzc3bjYyaW8yMnhydXNsY2FxdTFhIn0.Qi8QihmbMcxfvoOXaQ7PxQ"
|
|
|
|
|
}
|
|
|
|
|
// that's for mapbox:
|
|
|
|
|
// PluginParameter {
|
|
|
|
|
// name: "access_token"
|
|
|
|
|
// value: "pk.eyJ1Ijoia3ViYS1vcmxpayIsImEiOiJja2plYzc3bjYyaW8yMnhydXNsY2FxdTFhIn0.Qi8QihmbMcxfvoOXaQ7PxQ"
|
|
|
|
|
// }
|
|
|
|
|
PluginParameter{
|
|
|
|
|
name: "osm.mapping.custom.host"
|
|
|
|
|
value: "https://tile.openstreetmap.org/"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map {
|
|
|
|
@ -41,34 +46,36 @@ ApplicationWindow {
|
|
|
|
|
plugin: mapPlugin
|
|
|
|
|
id: map
|
|
|
|
|
center: QtPositioning.coordinate(52.397445910207296, 16.90215638925963) // Poznań
|
|
|
|
|
zoomLevel: 14
|
|
|
|
|
|
|
|
|
|
MapParameter {
|
|
|
|
|
type: "layer"
|
|
|
|
|
|
|
|
|
|
property var name: "3d-buildings"
|
|
|
|
|
property var source: "composite"
|
|
|
|
|
property var sourceLayer: "building"
|
|
|
|
|
property var layerType: "fill-extrusion"
|
|
|
|
|
property var minzoom: 15.0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MapParameter {
|
|
|
|
|
type: "filter"
|
|
|
|
|
|
|
|
|
|
property var layer: "3d-buildings"
|
|
|
|
|
property var filter: [ "==", "extrude", "true" ]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MapParameter {
|
|
|
|
|
type: "paint"
|
|
|
|
|
|
|
|
|
|
property var layer: "3d-buildings"
|
|
|
|
|
property var fillExtrusionColor: "#aaaaaa"
|
|
|
|
|
property var fillExtrusionOpacity: .6
|
|
|
|
|
property var fillExtrusionHeight: { return { type: "identity", property: "height" } }
|
|
|
|
|
property var fillExtrusionBase: { return { type: "identity", property: "min_height" } }
|
|
|
|
|
}
|
|
|
|
|
zoomLevel: 16
|
|
|
|
|
maximumZoomLevel: 19
|
|
|
|
|
activeMapType: supportedMapTypes[supportedMapTypes.length - 1]
|
|
|
|
|
|
|
|
|
|
// MapParameter {
|
|
|
|
|
// type: "layer"
|
|
|
|
|
|
|
|
|
|
// property var name: "3d-buildings"
|
|
|
|
|
// property var source: "composite"
|
|
|
|
|
// property var sourceLayer: "building"
|
|
|
|
|
// property var layerType: "fill-extrusion"
|
|
|
|
|
// property var minzoom: 15.0
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// MapParameter {
|
|
|
|
|
// type: "filter"
|
|
|
|
|
|
|
|
|
|
// property var layer: "3d-buildings"
|
|
|
|
|
// property var filter: [ "==", "extrude", "true" ]
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// MapParameter {
|
|
|
|
|
// type: "paint"
|
|
|
|
|
|
|
|
|
|
// property var layer: "3d-buildings"
|
|
|
|
|
// property var fillExtrusionColor: "#aaaaaa"
|
|
|
|
|
// property var fillExtrusionOpacity: .6
|
|
|
|
|
// property var fillExtrusionHeight: { return { type: "identity", property: "height" } }
|
|
|
|
|
// property var fillExtrusionBase: { return { type: "identity", property: "min_height" } }
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
MapQuickItem {
|
|
|
|
|
id:marker
|
|
|
|
|