{"action":"created","issue":{"url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/260","repository_url":"https://api.github.com/repos/neveldo/jQuery-Mapael","labels_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/260/labels{/name}","comments_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/260/comments","events_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/260/events","html_url":"https://github.com/neveldo/jQuery-Mapael/issues/260","id":174020559,"number":260,"title":"click on area causes zoom to fit to viewport?","user":{"login":"tammo0","id":1723024,"avatar_url":"https://avatars.githubusercontent.com/u/1723024?v=3","gravatar_id":"","url":"https://api.github.com/users/tammo0","html_url":"https://github.com/tammo0","followers_url":"https://api.github.com/users/tammo0/followers","following_url":"https://api.github.com/users/tammo0/following{/other_user}","gists_url":"https://api.github.com/users/tammo0/gists{/gist_id}","starred_url":"https://api.github.com/users/tammo0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tammo0/subscriptions","organizations_url":"https://api.github.com/users/tammo0/orgs","repos_url":"https://api.github.com/users/tammo0/repos","events_url":"https://api.github.com/users/tammo0/events{/privacy}","received_events_url":"https://api.github.com/users/tammo0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-30T13:35:03Z","updated_at":"2016-09-06T12:44:12Z","closed_at":null,"body":"Hi @neveldo,\r\n\r\nfirst of all: thanks again for your great work!\r\n\r\ni'm looking for a feature: When a user clicks an area like a country i want the map to focus on it, so it fits to the viewport including zoom.\r\nAs far as i know its just possible to zoom to a lat/lon location with a given zoom level at the moment.\r\nBut for areas its not that easy because they are paths and not coordination values. So i wonder if there is a function to do what i need (e.g. using BBox or something).\r\n\r\nthanks and greetings"},"comment":{"url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/comments/244938325","html_url":"https://github.com/neveldo/jQuery-Mapael/issues/260#issuecomment-244938325","issue_url":"https://api.github.com/repos/neveldo/jQuery-Mapael/issues/260","id":244938325,"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-09-06T12:44:12Z","updated_at":"2016-09-06T12:44:12Z","body":"HI @tammo0 ,\r\n\r\nYou're welcome :) . For now, there is unfortunately not such a feature into Mapael. I think that with getBBox() function and paper.setViewBox() (this one is used for zooming), you should be able to do something.\r\n\r\nFeel free to give a feedback !"}}
{"actor":{"display_login":"neveldo"}}