Closed wangdemon closed 2 years ago
There's some web sites that can help you to draw stuff on a map and get the list of the geo coords related to what you have drawn (GeoJSON, CSV). I forgot ! You can use QGIS to display a map and add points or draw stuff on it, there's a lot of tutorials on the web. Be ware that QGIS can be finicky to use and that the tutorials are out-dated. If you work on a GIS project, QGIS can be very useful.
Once you have a list of points, you will just have to load them (CSV/GeoJSON), iterate over them and change the position of the red dot redraw the map, make a pause etc... (don't make a blocking code, use QTimer or QEventLoop).
By the way, in the past, I have already worked on a code that generates N points for a path that have less than N points (e.g. a path defined using 30 points but we want to have the same path but with 1000 points. It uses scalar products and wasn't easy to code), so if someone needs it, I will make a demo and share it in this branch where I have already shared some interesting demos : https://github.com/embeddedmz/QGeoView/tree/draft (there's a GeoJSON reader under demo/samples/polyline.cpp, it is not complete but it will work for simple files) I have used it back then to color a path with data (color map).
Most closest to your case: https://github.com/AmonRaNet/QGeoView/blob/master/demo/samples/utilities.cpp https://github.com/AmonRaNet/QGeoView/blob/master/demo/samples/waveanimation.cpp
It is not one-to-one to your case, but very close to it. It is demo with animated "QQeoView" text on map.
Thank you very much
As shown in the figure below