Home > Enterprise >  Clearing route and getting way points in QT,QML,C
Clearing route and getting way points in QT,QML,C

Time:12-21

I have two questions which are somehow related.

  1. 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 achieved? For example I want to extract way points for the generated red route from the image bellow (of course I do not want to extract all the points from a route but from 10 in 10 meters).

enter image description here

  1. How do I erase the generated route with red, and have the original map (without the red route) I have tried many function on the map item but non of them worked. For example I have tried the code below but the red route remains.

    function clearMapDataForSession()
     {
        mapview.clearData();
        routeModel.update()
     }
    

CodePudding user response:

You can get a list of enter image description here

  • Related