{"action":"created","issue":{"url":"https://api.github.com/repos/terikon/marker-animate-unobtrusive/issues/15","repository_url":"https://api.github.com/repos/terikon/marker-animate-unobtrusive","labels_url":"https://api.github.com/repos/terikon/marker-animate-unobtrusive/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/terikon/marker-animate-unobtrusive/issues/15/comments","events_url":"https://api.github.com/repos/terikon/marker-animate-unobtrusive/issues/15/events","html_url":"https://github.com/terikon/marker-animate-unobtrusive/issues/15","id":192357062,"number":15,"title":"Angular ng-repeat problem","user":{"login":"sirfilipef","id":7373946,"avatar_url":"https://avatars.githubusercontent.com/u/7373946?v=3","gravatar_id":"","url":"https://api.github.com/users/sirfilipef","html_url":"https://github.com/sirfilipef","followers_url":"https://api.github.com/users/sirfilipef/followers","following_url":"https://api.github.com/users/sirfilipef/following{/other_user}","gists_url":"https://api.github.com/users/sirfilipef/gists{/gist_id}","starred_url":"https://api.github.com/users/sirfilipef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirfilipef/subscriptions","organizations_url":"https://api.github.com/users/sirfilipef/orgs","repos_url":"https://api.github.com/users/sirfilipef/repos","events_url":"https://api.github.com/users/sirfilipef/events{/privacy}","received_events_url":"https://api.github.com/users/sirfilipef/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-29T18:10:04Z","updated_at":"2016-12-02T06:16:59Z","closed_at":null,"body":"I have a problem, when i add just one point without ng-repeat the easing works fine,\r\n\r\n`   <marker easing=\"linear\" duration=\"2000\" id=\"{{$index}}\" position=\"[{{positions[2].lat}}, {{ositions[2].lng}}]\" title=\"pos: {{positions[2]}}\">\r\n            </marker>`\r\n\r\nbut when i add the ng-repeat, the easing doesnt work.\r\n\r\n`   <marker easing=\"linear\" duration=\"2000\" ng-repeat=\"p in positions\" id=\"{{$index}}\" position=\"[{{p.lat}}, {{p.lng}}]\" title=\"pos: {{p}}\">\r\n            </marker>`\r\n\r\nAny idea?"},"comment":{"url":"https://api.github.com/repos/terikon/marker-animate-unobtrusive/issues/comments/264382230","html_url":"https://github.com/terikon/marker-animate-unobtrusive/issues/15#issuecomment-264382230","issue_url":"https://api.github.com/repos/terikon/marker-animate-unobtrusive/issues/15","id":264382230,"user":{"login":"viskin","id":10885108,"avatar_url":"https://avatars.githubusercontent.com/u/10885108?v=3","gravatar_id":"","url":"https://api.github.com/users/viskin","html_url":"https://github.com/viskin","followers_url":"https://api.github.com/users/viskin/followers","following_url":"https://api.github.com/users/viskin/following{/other_user}","gists_url":"https://api.github.com/users/viskin/gists{/gist_id}","starred_url":"https://api.github.com/users/viskin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viskin/subscriptions","organizations_url":"https://api.github.com/users/viskin/orgs","repos_url":"https://api.github.com/users/viskin/repos","events_url":"https://api.github.com/users/viskin/events{/privacy}","received_events_url":"https://api.github.com/users/viskin/received_events","type":"User","site_admin":false},"created_at":"2016-12-02T06:16:59Z","updated_at":"2016-12-02T06:16:59Z","body":"Ok, if you do\r\n\r\n      ng-repeat=\"pos in vm.positions\"\r\n\r\nangular will create **new marker** each time positions are being updated. \r\nYou want to treat position so first one belongs to the first marker, second to the second etc. By index.\r\nTry this:\r\n\r\n       ng-repeat=\"pos in vm.positions track by $index\"\r\n\r\nIt will do the job."}}
{"actor":{"display_login":"viskin"}}