{"action":"created","issue":{"url":"https://api.github.com/repos/moagrius/TileView/issues/295","repository_url":"https://api.github.com/repos/moagrius/TileView","labels_url":"https://api.github.com/repos/moagrius/TileView/issues/295/labels{/name}","comments_url":"https://api.github.com/repos/moagrius/TileView/issues/295/comments","events_url":"https://api.github.com/repos/moagrius/TileView/issues/295/events","html_url":"https://github.com/moagrius/TileView/issues/295","id":148682888,"number":295,"title":"Tileview not centring in Landscape mode","user":{"login":"ghousk","id":11925468,"avatar_url":"https://avatars.githubusercontent.com/u/11925468?v=3","gravatar_id":"","url":"https://api.github.com/users/ghousk","html_url":"https://github.com/ghousk","followers_url":"https://api.github.com/users/ghousk/followers","following_url":"https://api.github.com/users/ghousk/following{/other_user}","gists_url":"https://api.github.com/users/ghousk/gists{/gist_id}","starred_url":"https://api.github.com/users/ghousk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghousk/subscriptions","organizations_url":"https://api.github.com/users/ghousk/orgs","repos_url":"https://api.github.com/users/ghousk/repos","events_url":"https://api.github.com/users/ghousk/events{/privacy}","received_events_url":"https://api.github.com/users/ghousk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-15T14:57:41Z","updated_at":"2016-04-15T22:19:44Z","closed_at":null,"body":"We have implemented a solution using the TileView library for a mapping requirement. We set the TileView.setShouldScaleToFit(false); to false. As we would like to override this. The reason for overriding is that we need to in effect zoom out of the map at startup, else it goes of the screen. So we take the whole Map Region width and height and multiply that by 2. and use the resulting width and height to set TileView.setSize(mapWidth, mapHeight);\r\nWe set the scale to 0.5f. However the whole map is shown at horizontally start of the screen. We would like this to be shifted to the centre.\r\nIf we do set TileView.setShouldScaleToFit(true); to true, then the map is centred but it doesn't fit in the screen then.\r\nWe have looked at the RealMapTileViewActivity in tileview demo project, but the solution there did not work for our App. I wonder if you could kindly advise a solution to us.\r\nMany Thanks in advance"},"comment":{"url":"https://api.github.com/repos/moagrius/TileView/issues/comments/210667407","html_url":"https://github.com/moagrius/TileView/issues/295#issuecomment-210667407","issue_url":"https://api.github.com/repos/moagrius/TileView/issues/295","id":210667407,"user":{"login":"moagrius","id":701344,"avatar_url":"https://avatars.githubusercontent.com/u/701344?v=3","gravatar_id":"","url":"https://api.github.com/users/moagrius","html_url":"https://github.com/moagrius","followers_url":"https://api.github.com/users/moagrius/followers","following_url":"https://api.github.com/users/moagrius/following{/other_user}","gists_url":"https://api.github.com/users/moagrius/gists{/gist_id}","starred_url":"https://api.github.com/users/moagrius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moagrius/subscriptions","organizations_url":"https://api.github.com/users/moagrius/orgs","repos_url":"https://api.github.com/users/moagrius/repos","events_url":"https://api.github.com/users/moagrius/events{/privacy}","received_events_url":"https://api.github.com/users/moagrius/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T22:19:44Z","updated_at":"2016-04-15T22:19:44Z","body":"I'm sorry but I don't understand your question.  `setShouldScaleToFit(false)` just means you can scale the  TileView down to smaller than it's containing View.\r\n\r\nCan you restate your questions, maybe with steps or graphics..."}}