{"action":"created","issue":{"url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/280","repository_url":"https://api.github.com/repos/neveldo/jQuery-Mapael","labels_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/280/labels{/name}","comments_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/280/comments","events_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/280/events","html_url":"https://github.com/neveldo/jQuery-Mapael/issues/280","id":194328584,"number":280,"title":"Get X and Y coordinates on click","user":{"login":"cat-labs","id":2089097,"avatar_url":"https://avatars.githubusercontent.com/u/2089097?v=3","gravatar_id":"","url":"https://api.github.com/users/cat-labs","html_url":"https://github.com/cat-labs","followers_url":"https://api.github.com/users/cat-labs/followers","following_url":"https://api.github.com/users/cat-labs/following{/other_user}","gists_url":"https://api.github.com/users/cat-labs/gists{/gist_id}","starred_url":"https://api.github.com/users/cat-labs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cat-labs/subscriptions","organizations_url":"https://api.github.com/users/cat-labs/orgs","repos_url":"https://api.github.com/users/cat-labs/repos","events_url":"https://api.github.com/users/cat-labs/events{/privacy}","received_events_url":"https://api.github.com/users/cat-labs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-08T12:53:29Z","updated_at":"2016-12-13T21:54:15Z","closed_at":null,"body":"Hi,\r\n\r\nI am creating an admin where I want to allow non IT people to add new plots on the map. The idea is to show a map, they can click on it and a plot is added. To achieve this, I need to get the X, Y coordinate of the clicked point.\r\n\r\nDo you know how I can achieve this?"},"comment":{"url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/comments/266873997","html_url":"https://github.com/neveldo/jQuery-Mapael/issues/280#issuecomment-266873997","issue_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/280","id":266873997,"user":{"login":"neveldo","id":1663176,"avatar_url":"https://avatars.githubusercontent.com/u/1663176?v=3","gravatar_id":"","url":"https://api.github.com/users/neveldo","html_url":"https://github.com/neveldo","followers_url":"https://api.github.com/users/neveldo/followers","following_url":"https://api.github.com/users/neveldo/following{/other_user}","gists_url":"https://api.github.com/users/neveldo/gists{/gist_id}","starred_url":"https://api.github.com/users/neveldo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neveldo/subscriptions","organizations_url":"https://api.github.com/users/neveldo/orgs","repos_url":"https://api.github.com/users/neveldo/repos","events_url":"https://api.github.com/users/neveldo/events{/privacy}","received_events_url":"https://api.github.com/users/neveldo/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T21:54:15Z","updated_at":"2016-12-13T21:54:15Z","body":"Hello,\r\n\r\nI have found your usecase interesting so I have added to the repository a new sample that does the trick : https://rawgit.com/neveldo/jQuery-Mapael/master/examples/advanced/add_cities_on_map_by_double_click.html. The key is to use mapPagePositionToXY() function in order to get the proper x,y coordinates in order to position the point on the map. I hope it will help you !"}}
{"actor":{"display_login":"neveldo"}}