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

master
Kuba Orlik 4 years ago
parent c2ddba29b9
commit c1c3c5456f

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

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject> <!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> <qtcreator>
<data> <data>
<variable>EnvironmentId</variable> <variable>EnvironmentId</variable>
@ -242,12 +242,11 @@
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">pin64</value> <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.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="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.UseCppDebugger">false</value>
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value> <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value> <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</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> </valuemap>
<value type="int" key="ProjectExplorer.Target.RunConfigurationCount">2</value> <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">2</value>
</valuemap> </valuemap>

Loading…
Cancel
Save