{"action":"created","issue":{"url":"https://api.github.com/repos/mavlink/qgroundcontrol/issues/2030","labels_url":"https://api.github.com/repos/mavlink/qgroundcontrol/issues/2030/labels{/name}","comments_url":"https://api.github.com/repos/mavlink/qgroundcontrol/issues/2030/comments","events_url":"https://api.github.com/repos/mavlink/qgroundcontrol/issues/2030/events","html_url":"https://github.com/mavlink/qgroundcontrol/issues/2030","id":112021801,"number":2030,"title":"Waypoint dragging visuals","user":{"login":"LorenzMeier","id":1208119,"avatar_url":"https://avatars.githubusercontent.com/u/1208119?v=3","gravatar_id":"","url":"https://api.github.com/users/LorenzMeier","html_url":"https://github.com/LorenzMeier","followers_url":"https://api.github.com/users/LorenzMeier/followers","following_url":"https://api.github.com/users/LorenzMeier/following{/other_user}","gists_url":"https://api.github.com/users/LorenzMeier/gists{/gist_id}","starred_url":"https://api.github.com/users/LorenzMeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LorenzMeier/subscriptions","organizations_url":"https://api.github.com/users/LorenzMeier/orgs","repos_url":"https://api.github.com/users/LorenzMeier/repos","events_url":"https://api.github.com/users/LorenzMeier/events{/privacy}","received_events_url":"https://api.github.com/users/LorenzMeier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-18T13:57:35Z","updated_at":"2015-10-18T23:31:51Z","closed_at":null,"body":"Waypoint dragging works well, but the visual needs to indicate that its selected (e.g. by growing it 10x)\r\nand it would be good if a transparent line moves with it.\r\n"},"comment":{"url":"https://api.github.com/repos/mavlink/qgroundcontrol/issues/comments/149064421","html_url":"https://github.com/mavlink/qgroundcontrol/issues/2030#issuecomment-149064421","issue_url":"https://api.github.com/repos/mavlink/qgroundcontrol/issues/2030","id":149064421,"user":{"login":"DonLakeFlyer","id":5876851,"avatar_url":"https://avatars.githubusercontent.com/u/5876851?v=3","gravatar_id":"","url":"https://api.github.com/users/DonLakeFlyer","html_url":"https://github.com/DonLakeFlyer","followers_url":"https://api.github.com/users/DonLakeFlyer/followers","following_url":"https://api.github.com/users/DonLakeFlyer/following{/other_user}","gists_url":"https://api.github.com/users/DonLakeFlyer/gists{/gist_id}","starred_url":"https://api.github.com/users/DonLakeFlyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DonLakeFlyer/subscriptions","organizations_url":"https://api.github.com/users/DonLakeFlyer/orgs","repos_url":"https://api.github.com/users/DonLakeFlyer/repos","events_url":"https://api.github.com/users/DonLakeFlyer/events{/privacy}","received_events_url":"https://api.github.com/users/DonLakeFlyer/received_events","type":"User","site_admin":false},"created_at":"2015-10-18T23:31:51Z","updated_at":"2015-10-18T23:31:51Z","body":"You know I don't know what the hell I was doing but I somehow missed all that code. Most likely because I developed the Mission Editor in a separate vacuum (don't tell Lorenz!). And in the frenzy to tear out the old map stuff I deleted right over it. My screw up.\r\n\r\nThe reason why it's more complicated now is because as you know you can't just move MapPolyLine coordinates. You basically need to recalc the lines yourself anytime anything changes. The line recalc code doesn't just put a line in between all the mission items. That recalc gets complicated because a line is only connected to the home position when the next item is a takeoff item. It is also complicated by the fact that not all mission items have a coordinate associated with them. Lines don't go through those items. So determining what one/two/none lines move around when you drag an item is a little tricky.\r\n\r\nBut in fact as I type all this I'm realizing it's actually not too terrible. Just a small PITA. In fact it could be made even easier if you aren't ghosting a new set of lines but just live recalcing the full line set. I'm not sure if that will work from a redraw standpoint. But it's worth a try."}}