Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Add data points to Map with MapItemView from C++
erso last edited by
I have fairly large sets of data points (in the thousands) grouped in a handful of samples that I want to iteratively display on top of a map. The data is loaded in to my application via my C++ code from a JSON file. The data is not complex, each data point only needs coordinates and a color and then to be displayed onto the map. For speed I'm directly using and working in the example: https://doc.qt.io/qt-5/qtlocation-mapviewer-example.html
I figure I need to create a custom MapItemView for the points specifying geometrical shape and required properties such as color and coordinates.
But after the data is parsed in C++, how do I go about putting actual points onto the map, from C++?
The connection between C++ and QML is not clear here and I would highly appreciate any help