{"action":"created","issue":{"url":"https://api.github.com/repos/osmandapp/Osmand/issues/2379","repository_url":"https://api.github.com/repos/osmandapp/Osmand","labels_url":"https://api.github.com/repos/osmandapp/Osmand/issues/2379/labels{/name}","comments_url":"https://api.github.com/repos/osmandapp/Osmand/issues/2379/comments","events_url":"https://api.github.com/repos/osmandapp/Osmand/issues/2379/events","html_url":"https://github.com/osmandapp/Osmand/pull/2379","id":143969695,"number":2379,"title":"New GPX track rendering and animation/overlay package.","user":{"login":"andrew-davie","id":16424075,"avatar_url":"https://avatars.githubusercontent.com/u/16424075?v=3","gravatar_id":"","url":"https://api.github.com/users/andrew-davie","html_url":"https://github.com/andrew-davie","followers_url":"https://api.github.com/users/andrew-davie/followers","following_url":"https://api.github.com/users/andrew-davie/following{/other_user}","gists_url":"https://api.github.com/users/andrew-davie/gists{/gist_id}","starred_url":"https://api.github.com/users/andrew-davie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrew-davie/subscriptions","organizations_url":"https://api.github.com/users/andrew-davie/orgs","repos_url":"https://api.github.com/users/andrew-davie/repos","events_url":"https://api.github.com/users/andrew-davie/events{/privacy}","received_events_url":"https://api.github.com/users/andrew-davie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-03-28T12:52:22Z","updated_at":"2016-04-02T18:20:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/osmandapp/Osmand/pulls/2379","html_url":"https://github.com/osmandapp/Osmand/pull/2379","diff_url":"https://github.com/osmandapp/Osmand/pull/2379.diff","patch_url":"https://github.com/osmandapp/Osmand/pull/2379.patch"},"body":"WHAT THIS PROVIDES:\r\n\r\nA generic rendering/draw of GPX tracks that allows multiple 'renders' to be included as a part of the draw of any TrkSegment. These 'renders' include the basic track drawing, but also other options such as dashed lines, rainbow-coloured altitude indication, speed indication, arrows to point direction, animating 'lines' showing direction of movement, and dots/text showing 1km (or any other) distances along tracks.  It's very extendable and incredibly cheap in terms of processing speed.\r\n\r\nFor a view of some of these operating on this version of the code, see [https://youtu.be/aRGCNLmBAlk] this video.\r\n\r\n`Additionally,` all of the above have automatic asynchronous track resampling - either via line culling of\r\nRamer-Douglas-Peucer (implemented for the base track draw at different zooms), or an actual resampler that takes a distance and steps off and creates a new track with points spaced exactly that distance apart along the original track. The asynchronous resampling/culling willl automatically enable the new (optimal) track display when the background task has completed.\r\n\r\nThis is completely up to date with the master branch as of an hour or so ago!\r\n\r\nTwo modified files\r\n - GPXUtilities\r\n   Added some fields to WptPt to enable distance measurement on tracks and colouring for altitude/speed\r\n - GPXLayer\r\n   Installed the new track rendering with examples (commented/out)\r\n\r\nTwo new files\r\n - AsynchronousResampler.java\r\n    Implements line resampling and culling asynchrnonously for all line drawing\r\n - Renderable.java\r\n    Set of classes for drawing different kinds of gpx 'renders'\r\n     - normal with automatic Ramer-Douglas-Peucer line culling\r\n     - conveyor-belt type animation of segments on a path\r\n     - altitude colouring of a path\r\n     - speed colouring of a path\r\n     - distance based waypoint/marker drawing\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/osmandapp/Osmand/issues/comments/204769930","html_url":"https://github.com/osmandapp/Osmand/pull/2379#issuecomment-204769930","issue_url":"https://api.github.com/repos/osmandapp/Osmand/issues/2379","id":204769930,"user":{"login":"andrew-davie","id":16424075,"avatar_url":"https://avatars.githubusercontent.com/u/16424075?v=3","gravatar_id":"","url":"https://api.github.com/users/andrew-davie","html_url":"https://github.com/andrew-davie","followers_url":"https://api.github.com/users/andrew-davie/followers","following_url":"https://api.github.com/users/andrew-davie/following{/other_user}","gists_url":"https://api.github.com/users/andrew-davie/gists{/gist_id}","starred_url":"https://api.github.com/users/andrew-davie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrew-davie/subscriptions","organizations_url":"https://api.github.com/users/andrew-davie/orgs","repos_url":"https://api.github.com/users/andrew-davie/repos","events_url":"https://api.github.com/users/andrew-davie/events{/privacy}","received_events_url":"https://api.github.com/users/andrew-davie/received_events","type":"User","site_admin":false},"created_at":"2016-04-02T18:20:44Z","updated_at":"2016-04-02T18:20:44Z","body":"ttps://youtu.be/2kTnU-4-rhU\r\n"}}