{"action":"closed","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1242","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1242/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1242/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1242/events","html_url":"https://github.com/mapbox/mapbox-gl-native/issues/1242","id":67427313,"number":1242,"title":"Directed symbols placed along a line are always wrong (Inconsistency between resample and Placement::getIcon).","user":{"login":"mb12","id":8890269,"avatar_url":"https://avatars.githubusercontent.com/u/8890269?v=3","gravatar_id":"","url":"https://api.github.com/users/mb12","html_url":"https://github.com/mb12","followers_url":"https://api.github.com/users/mb12/followers","following_url":"https://api.github.com/users/mb12/following{/other_user}","gists_url":"https://api.github.com/users/mb12/gists{/gist_id}","starred_url":"https://api.github.com/users/mb12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mb12/subscriptions","organizations_url":"https://api.github.com/users/mb12/orgs","repos_url":"https://api.github.com/users/mb12/repos","events_url":"https://api.github.com/users/mb12/events{/privacy}","received_events_url":"https://api.github.com/users/mb12/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-09T18:51:09Z","updated_at":"2015-04-09T19:23:32Z","closed_at":"2015-04-09T19:23:32Z","body":"Directed symbols placed along a line are always wrong. For e.g. if the symbol is an arrow along a road going east, it would show the arrow as going west.\r\n\r\nThe issue is that nextIndex used in Placement::getIcon is incorrect/inconsistent with how anchor.segment is set in resample.\r\n\r\n- In resample, when creating anchor for a segment going from i to i+1, anchor.segment is set to i.\r\n- In Placement::getIcon, when computing the angle between anchor and the next point in the segment, it should pick i+1 and not i.\r\n\r\n\r\n"}}