{"action":"created","issue":{"url":"https://api.github.com/repos/openlayers/ol3/issues/3250","labels_url":"https://api.github.com/repos/openlayers/ol3/issues/3250/labels{/name}","comments_url":"https://api.github.com/repos/openlayers/ol3/issues/3250/comments","events_url":"https://api.github.com/repos/openlayers/ol3/issues/3250/events","html_url":"https://github.com/openlayers/ol3/pull/3250","id":58101357,"number":3250,"title":"Add Translate interaction","user":{"login":"Morgul","id":770655,"avatar_url":"https://avatars.githubusercontent.com/u/770655?v=3","gravatar_id":"","url":"https://api.github.com/users/Morgul","html_url":"https://github.com/Morgul","followers_url":"https://api.github.com/users/Morgul/followers","following_url":"https://api.github.com/users/Morgul/following{/other_user}","gists_url":"https://api.github.com/users/Morgul/gists{/gist_id}","starred_url":"https://api.github.com/users/Morgul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Morgul/subscriptions","organizations_url":"https://api.github.com/users/Morgul/orgs","repos_url":"https://api.github.com/users/Morgul/repos","events_url":"https://api.github.com/users/Morgul/events{/privacy}","received_events_url":"https://api.github.com/users/Morgul/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-18T17:42:39Z","updated_at":"2015-02-24T15:55:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openlayers/ol3/pulls/3250","html_url":"https://github.com/openlayers/ol3/pull/3250","diff_url":"https://github.com/openlayers/ol3/pull/3250.diff","patch_url":"https://github.com/openlayers/ol3/pull/3250.patch"},"body":"This adds a `Translate` interaction, similar in concept to the `Modify` interaction, but instead of editing vertexes, this allows the user to translate (move) the features around.\r\n\r\nThis interaction, like the `Modify` interaction is most useful when combined with the `Select` interaction, but does not require it. All that is required is to provide it a list of features. When a drag is started on a point that intersects one of those features, the feature's position will be updated to follow the mouse pointer.\r\n\r\nThis has been tested in touch devices, and works well there as well as with a mouse.\r\n\r\nThis interaction has no visual styling on it's own; while it would be possible for me to add, I couldn't come up with anything meaningful, and the simplicity of the current code had a certain elegance to it. :)"},"comment":{"url":"https://api.github.com/repos/openlayers/ol3/issues/comments/75782993","html_url":"https://github.com/openlayers/ol3/pull/3250#issuecomment-75782993","issue_url":"https://api.github.com/repos/openlayers/ol3/issues/3250","id":75782993,"user":{"login":"elemoine","id":76594,"avatar_url":"https://avatars.githubusercontent.com/u/76594?v=3","gravatar_id":"","url":"https://api.github.com/users/elemoine","html_url":"https://github.com/elemoine","followers_url":"https://api.github.com/users/elemoine/followers","following_url":"https://api.github.com/users/elemoine/following{/other_user}","gists_url":"https://api.github.com/users/elemoine/gists{/gist_id}","starred_url":"https://api.github.com/users/elemoine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elemoine/subscriptions","organizations_url":"https://api.github.com/users/elemoine/orgs","repos_url":"https://api.github.com/users/elemoine/repos","events_url":"https://api.github.com/users/elemoine/events{/privacy}","received_events_url":"https://api.github.com/users/elemoine/received_events","type":"User","site_admin":false},"created_at":"2015-02-24T15:55:58Z","updated_at":"2015-02-24T15:55:58Z","body":"The big difference between your translate interaction and the one in the `drag-features` example is that yours relies on extent intersections while the one in the example is based on `forEachFeatureAtPixel` (hit detection). Think about the case where the user wants to drag points represented as big icons for example."}}