Questions tagged [qtlocation]

The Qt Location API helps to create viable mapping solutions using the data available from some of the popular location services.

The Qt Location API enables the user to:

  • access and present map data,
  • support touch gesture on a specific area of the map,
  • query for a specific geographical location and route,
  • add additional layers on top, such as polylines and circles,
  • and search for places and related images.

The module provides both a C++ API as well as a QML API.

70 questions
1
vote
1 answer

QML: How to correctly pass property to PluginParameter value from C++ code?

Hello everyone! I've got the problem with passing property value through C++ to QML. My project is desktop application that must works with maps under Windows. So, after reading docs I found the best solution via QML using Qt Location. I chose OSM…
Shtol Krakov
  • 1,260
  • 9
  • 20
1
vote
1 answer

Qt Location: MapViewer example: what is locationData?

Example's article refers to locationData inside of MapCircle element. I was not able to find anything about what it really is. It's not defined in the example also. What is it? Is there some docs/etc. regarding this thing?
Alexander Dyagilev
  • 1,139
  • 1
  • 15
  • 43
1
vote
1 answer

QtLocation: how to make drag-and-drop on Map?

I have a QML Map widget. I want to drop some objects on it to get the latitude and longitude of the dropping point. How can I do it?
Felix
  • 3,351
  • 6
  • 40
  • 68
1
vote
1 answer

How do I set a property of type QJSValue on a QML object from C++?

I have a QQuickItem that corresponds to a MapPolyline object. The polyline has a property called path, which is defined in the documentation to be of type list. coordinate is a type that maps to QGeoCoordinate in the C++ world. I'm…
Jason R
  • 11,159
  • 6
  • 50
  • 81
0
votes
1 answer

How to set focus on the MapView by interacting with the map?

I have MapView as a main window element and I want it to respond to some keyboard presses. But if I click, for example, on the ManuBar and then on the map, the focus remains on the menu. I could handle mouse clicks to set the…
kancler
  • 81
  • 1
  • 8
0
votes
1 answer

How to change map.activeMapType at the app startup?

I want to change map.activeMapType at the app startup. I have menu mapTypeMenu with actions that change activeMapType. So I added Component.onCompleted to the MapView to trigger the needed action to switch activeMapType. But it looks like map…
kancler
  • 81
  • 1
  • 8
0
votes
1 answer

Multiple Marker with different Images as Icons in QML Map Widget

What do I want ? I have a widget in QML which displays a map with OSM plugin. On this map whenever I click I want to place a marker. If I click on another position a new marker should be added. In the top I have a Tabbar. Depending on which Button…
Astraeus
  • 61
  • 9
0
votes
1 answer

Clearing route and getting way points in QT,QML,C++

I have two questions which are somehow related. I have created a route on an open street map and I want to extract a list of points that correspond to the way points of the generated route (not just the start and the finish). How can this be…
Mircea Paul Muresan
  • 628
  • 1
  • 9
  • 23
0
votes
1 answer

Does 3D terrain feature work for Qt Location Mapbox GL Plugin?

I have created custom map style in Mapbox Studio with 3D terrain and it looks fine in the Studio: However in QML application there is no 3D terrain, map is still flat and 2D: The only thing we can do 3D is 3d-buildings layer, see used code…
Aleksey Kontsevich
  • 4,671
  • 4
  • 46
  • 101
0
votes
1 answer

Using offline data with QtLocation plugin

I have 500mb of offline data I would like to use with the OSM QtLocation plugin. I used the sample source code from this blog https://www.qt.io/blog/2017/05/24/qtlocation-using-offline-map-tiles-openstreetmap-plugin. The data in the sample app is…
Theuns Heydenrych
  • 449
  • 1
  • 4
  • 12
0
votes
0 answers

sky layer cant add to MapBoxGl - QT5.12.4

i am using Mapboxgl - qml and every things is ok but i cant tilt above 45 and the sky layer cant found the code : main.qml import QtLocation 5.12 import QtPositioning 5.12 import QtQuick 2.12 Map { id: map anchors.fill: parent …
0
votes
0 answers

MapCircle not rendering in QML when using Mapbox

I have an issue with trying to display QML MapCircle on a Window when I use the Mapboxgl plugin. I have a model which is populated from C++ and is shown on the map when the user clicks a button. Here is a snippet: MapItemView{ model:disksModel …
0
votes
0 answers

is it possible to create a 3D polyline over a QML Map?

I am trying to plot the flight trajectory of an airplane using QML maps. Map { [...] MapPolyline { [...] path: [ { latitude: ..., longitude: ..., altitude: 0}, …
Tony_V
  • 37
  • 7
0
votes
2 answers

Unknown module(s) in QT: location-private positioning-private

how or where can i install QT modules: location-private positioning-private apt search positioning-private does not have a result
0
votes
1 answer

Missing icons on Qt 5.12

Until now I had used mapbox://styles/mapbox/navigation-preview-night-v2 style, which was working fine. But when I changed my style to "Navigation"(which is default template from Mapbox Studio), I got following warnings: [ WARNING ] …