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

Qt QML MapItem Rotation issue

I have a QML OSM map and a MapQuickItem with Text source item: MapQuickItem { property alias rulerRotationAngle: rulerRotation.angle id: rulerTextMapItem visible: false width: 2 height: 2 …
whs31-
  • 11
  • 2
1
vote
1 answer

QML Custom Tile server

I'm trying to plot an offline map using a custom server that my machine is hosting. I've followed the steps of this project for docker. It works when I use my browser (http://localhost:8080/). But when I try to access QML using the code below I just…
1
vote
1 answer

QML map - TLS initialization failed ERROR

I am currently creating an application that will be able to display maps. Before I add more advanced features, I would like to simply display a map of a certain area in the application. For this I used a bit of modified code from the Qt example…
aszan
  • 15
  • 5
1
vote
0 answers

How do I move my map markers in realtime on Qt?

I'm using Qt to run on Android. I'm working on a qtlocation map and I want to update my location in realtime. I have set my updateInterval: 1 (0.001 seconds) but MapQuickItem is still moving too late. PositionSource { id: ps updateInterval:…
1
vote
0 answers

is there 3-D Mapping in QtLocation Map?

I work on a qml map project and use osm plugin for offline map displaying. Here is some code about it. Plugin{ id: mapPlugin name: 'osm' PluginParameter { name: 'osm.mapping.offline.directory' value:…
alpha
  • 31
  • 2
1
vote
1 answer

Qt Qml Map with HERE plugin how to correctly authenticate using here.token

I'm struggling to authenticate in HERE plugin. I'm using windows 10 with Qt 5.9.1 Mingw 32bit and my app is almost all written in c++. The only part Where I use QML is about the map. I want to use the HERE plugin, but I am a newbie with QtLocation…
Salvo
  • 286
  • 2
  • 20
1
vote
1 answer

QML: Custom draggable point delegate for ChartView series

Is it possible to use custom delegates for draggable points (i.e. Items, icons, Rectangles, etc) in Qt Charts or other 3rd party libraries like it is easily possible in Qt Location for MapItemView, MapQuickItem and their delegate property? Or it is…
Aleksey Kontsevich
  • 4,671
  • 4
  • 46
  • 101
1
vote
1 answer

Animating bearing property change with Qml Map

I am trying to animate the bearing property change on a Qml map: Map { id: map Behavior on bearing { enabled: true RotationAnimation { direction: RotationAnimation.Shortest duration: 500 …
Hyndrix
  • 4,282
  • 7
  • 41
  • 82
1
vote
1 answer

How to add items to the map from coordinates in the database?

I have a database with the coordinates of the airports and I need to display them with points on the map (QtLocation). With the QSqlQueryModel I can easily populate and show a TableView, but I have no idea how to create MapQuickItems. class…
1
vote
1 answer

QML map zoom only verticaly

Does map in Qt have a property, so it doesn't move center if I move mouse cursor on random place on map and try to change zoom level with mouse wheel? Because on default, map zooms, but moves existing center towards mouse cursor location (example on…
tomazj
  • 303
  • 3
  • 13
1
vote
1 answer

cannot add MapCircles to QML Map on MouseClick

I'm trying to create some markers that will be moving dynamically on a QML map. Before that, however, I need to plot them all on the map using the mouse so that I can update them later. I have been using pyqtProperty to send the coordinates I need…
1
vote
1 answer

How to let QML map traffic pass through a proxy, and disable this proxy for the rest of the program?

I've got an app that uses local network to talk to some devices, and an http proxy to fetch anything external. I'd like to use the map plugin in it. Now the map would require an http proxy to download the tiles. If I set global Qt proxy settings…
1
vote
0 answers

Qt QGeoCoordinate adapt as boost::geometry point

Is it possible to adapt QGeoCoordinate as boost::geometry point type? QGeoCoordinate only has getter and setter methods for lat/lon - no public access to fields.
Denys Rogovchenko
  • 191
  • 1
  • 2
  • 7
1
vote
0 answers

How to implement georeferenced MapQuickItem

I'm implementing a QtLocation based map to display sort of a heatmap, with colored areas ("pixels") on the map. One pixel of this heatmap covers around 100*100m area, therefore there can be a huge amount of them. My first attempt to implement this…
zgyarmati
  • 1,135
  • 8
  • 15
1
vote
1 answer

QML Map plugin "itemsoverlay" does not clip to the base map for large zoom, using visibleRegion()

I have a somehow minimal example of a QML map (OSM plugin) and a respective map overlay with plugin itemsoverlay. The following code will clip the overlay to the map, no matter what movement or zoom the map undergoes. However, I can zoom the base…
DomTomCat
  • 8,189
  • 1
  • 49
  • 64