{"action":"opened","issue":{"url":"https://api.github.com/repos/openplans/Leaflet.AnimatedMarker/issues/40","repository_url":"https://api.github.com/repos/openplans/Leaflet.AnimatedMarker","labels_url":"https://api.github.com/repos/openplans/Leaflet.AnimatedMarker/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/openplans/Leaflet.AnimatedMarker/issues/40/comments","events_url":"https://api.github.com/repos/openplans/Leaflet.AnimatedMarker/issues/40/events","html_url":"https://github.com/openplans/Leaflet.AnimatedMarker/issues/40","id":152344135,"number":40,"title":"Using animated marker with realtime GPS data","user":{"login":"m-menon","id":10776430,"avatar_url":"https://avatars.githubusercontent.com/u/10776430?v=3","gravatar_id":"","url":"https://api.github.com/users/m-menon","html_url":"https://github.com/m-menon","followers_url":"https://api.github.com/users/m-menon/followers","following_url":"https://api.github.com/users/m-menon/following{/other_user}","gists_url":"https://api.github.com/users/m-menon/gists{/gist_id}","starred_url":"https://api.github.com/users/m-menon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-menon/subscriptions","organizations_url":"https://api.github.com/users/m-menon/orgs","repos_url":"https://api.github.com/users/m-menon/repos","events_url":"https://api.github.com/users/m-menon/events{/privacy}","received_events_url":"https://api.github.com/users/m-menon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-01T18:49:04Z","updated_at":"2016-05-01T18:49:04Z","closed_at":null,"body":"hi, thanks a lot for the fantastic plugin - looks cool. Had a small question as I am just getting started the leaflet - I have a situation where GPS data is received periodically by the server. How can I use your animated marker plugin to smoothly move the marker to the new gps location rather than just the current 'abrupt' jump method I am using. I guess I will have to do something like below?\r\n\r\n```\r\nvar line = L.polyline([[Current Lat Lon],[New Lat lon]]),\r\n    animatedMarker = L.animatedMarker(line.getLatLngs());\r\n\r\nmap.addLayer(animatedMarker);\r\n```\r\n\r\nDo I have to keep doing map.addLayer for every new gps position that I receiver? \r\n\r\nThanks,\r\nM&M"}}