QML MapView
-
Re: QML MapView
Hello, I'm exploring use of MapView{} and it's almost working how I'd like it to.If I have MapQuickItem nested in our MapView {}, not the map{} then the map renders and it says that the marker is at the latitude and longitude we want from our console.log but nothing is rendered on the screen at this positionPlugin { id: mapPlugin name: "maplibre" // specify plugin parameters if necessary PluginParameter { name: "maplibre.map.styles" //value: "https://demotiles.maplibre.org/style.json" // value: "http://localhost:8080/styles/savvy.integrated.local/512/{z}/{x}/{y}.png" value: "http://192.168.1.58:8080/styles/savvy.integrated.local/style.json" } } MapView { id: mapView anchors.fill: parent anchors.topMargin: 0 anchors.leftMargin: 0 map.plugin: mapPlugin map.center: QtPositioning.coordinate(26.451,-80.549) map.zoomLevel: 10 MapQuickItem { parent: mapView.map sourceItem: Image { source: "qrc:/Image/Map/marker.png" smooth: true } } }