Switch to OSM classic style - as mapbox was not detailed enough

master
Kuba Orlik 3 years ago
parent c2ddba29b9
commit c1c3c5456f

@ -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

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.14.0, 2021-01-01T13:48:21. -->
<!-- Written by QtCreator 4.14.0, 2021-01-01T18:08:34. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
@ -242,12 +242,11 @@
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">pin64</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">PythonEditor.RunConfiguration./home/kuba/projects/personal/qt-map-py/pin64.png</value>
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey">/home/kuba/projects/personal/qt-map-py/pin64.png</value>
<value type="QString" key="PythonEditor.RunConfiguation.Script">/home/kuba/projects/personal/qt-map-py/pin64.png</value>
<value type="QString" key="PythonEditor.RunConfiguation.Interpreter">{321e7b37-1298-486f-a795-84810b9a4c52}</value>
<value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
<value type="QString" key="RunConfiguration.WorkingDirectory.default">/home/kuba/projects/personal/qt-map-py</value>
</valuemap>
<value type="int" key="ProjectExplorer.Target.RunConfigurationCount">2</value>
</valuemap>

Loading…
Cancel
Save