{"action":"created","issue":{"url":"https://api.github.com/repos/hallahan/LeafletPlayback/issues/26","labels_url":"https://api.github.com/repos/hallahan/LeafletPlayback/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/hallahan/LeafletPlayback/issues/26/comments","events_url":"https://api.github.com/repos/hallahan/LeafletPlayback/issues/26/events","html_url":"https://github.com/hallahan/LeafletPlayback/issues/26","id":53056109,"number":26,"title":"Animate polygons","user":{"login":"treborrr","id":5918460,"avatar_url":"https://avatars.githubusercontent.com/u/5918460?v=3","gravatar_id":"","url":"https://api.github.com/users/treborrr","html_url":"https://github.com/treborrr","followers_url":"https://api.github.com/users/treborrr/followers","following_url":"https://api.github.com/users/treborrr/following{/other_user}","gists_url":"https://api.github.com/users/treborrr/gists{/gist_id}","starred_url":"https://api.github.com/users/treborrr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/treborrr/subscriptions","organizations_url":"https://api.github.com/users/treborrr/orgs","repos_url":"https://api.github.com/users/treborrr/repos","events_url":"https://api.github.com/users/treborrr/events{/privacy}","received_events_url":"https://api.github.com/users/treborrr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-12-29T17:26:31Z","updated_at":"2015-01-16T23:28:27Z","closed_at":null,"body":"Is it possible to animate polygons from a dataset like they do here? http://timemap.googlecode.com/svn/tags/2.0.1/examples/polytween.html\r\n"},"comment":{"url":"https://api.github.com/repos/hallahan/LeafletPlayback/issues/comments/70339482","html_url":"https://github.com/hallahan/LeafletPlayback/issues/26#issuecomment-70339482","issue_url":"https://api.github.com/repos/hallahan/LeafletPlayback/issues/26","id":70339482,"user":{"login":"hallahan","id":556367,"avatar_url":"https://avatars.githubusercontent.com/u/556367?v=3","gravatar_id":"","url":"https://api.github.com/users/hallahan","html_url":"https://github.com/hallahan","followers_url":"https://api.github.com/users/hallahan/followers","following_url":"https://api.github.com/users/hallahan/following{/other_user}","gists_url":"https://api.github.com/users/hallahan/gists{/gist_id}","starred_url":"https://api.github.com/users/hallahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hallahan/subscriptions","organizations_url":"https://api.github.com/users/hallahan/orgs","repos_url":"https://api.github.com/users/hallahan/repos","events_url":"https://api.github.com/users/hallahan/events{/privacy}","received_events_url":"https://api.github.com/users/hallahan/received_events","type":"User","site_admin":false},"created_at":"2015-01-16T23:28:27Z","updated_at":"2015-01-16T23:28:27Z","body":"This would be tricky to make performant. You'd need to pre-render the polygon before the tick happens, probably on some other thread. Recreating a polygon upon each tick would be quite expensive.\r\n\r\nOne interesting idea would be to have a fixed number of vertices and move those vertices in an array. Then, redraw that path. I think this would be less expensive.\r\n\r\nCreating an efficient temporal interpolator for lines/polygons would be a really awesome undertaking!\r\n"}}