{"action":"created","issue":{"url":"https://api.github.com/repos/ghettovoice/ol3-tilecache/issues/1","labels_url":"https://api.github.com/repos/ghettovoice/ol3-tilecache/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/ghettovoice/ol3-tilecache/issues/1/comments","events_url":"https://api.github.com/repos/ghettovoice/ol3-tilecache/issues/1/events","html_url":"https://github.com/ghettovoice/ol3-tilecache/issues/1","id":124018862,"number":1,"title":"Not geting right tiles","user":{"login":"cchandel","id":972911,"avatar_url":"https://avatars.githubusercontent.com/u/972911?v=3","gravatar_id":"","url":"https://api.github.com/users/cchandel","html_url":"https://github.com/cchandel","followers_url":"https://api.github.com/users/cchandel/followers","following_url":"https://api.github.com/users/cchandel/following{/other_user}","gists_url":"https://api.github.com/users/cchandel/gists{/gist_id}","starred_url":"https://api.github.com/users/cchandel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cchandel/subscriptions","organizations_url":"https://api.github.com/users/cchandel/orgs","repos_url":"https://api.github.com/users/cchandel/repos","events_url":"https://api.github.com/users/cchandel/events{/privacy}","received_events_url":"https://api.github.com/users/cchandel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-28T05:07:28Z","updated_at":"2015-12-28T05:57:06Z","closed_at":null,"body":"Hi,\r\n  I tried using this with the v3.9.0 openlayers lib, but the tiles I get are not correct (compared to what I get in ol2).\r\n\r\n  Ex ol2 gives me http://localhost/tiles/landmass/06/000/000/622/000/000/267.png\r\n  but this extn with ol3 gives me tiles like http://localhost/tiles/landmass/06/000/000/044/000/000/035.png\r\n\r\n  Map center is same in both cases 72.8,18.8 and zoom level 6.\r\n\r\n  AM I doing something wrong?"},"comment":{"url":"https://api.github.com/repos/ghettovoice/ol3-tilecache/issues/comments/167492200","html_url":"https://github.com/ghettovoice/ol3-tilecache/issues/1#issuecomment-167492200","issue_url":"https://api.github.com/repos/ghettovoice/ol3-tilecache/issues/1","id":167492200,"user":{"login":"cchandel","id":972911,"avatar_url":"https://avatars.githubusercontent.com/u/972911?v=3","gravatar_id":"","url":"https://api.github.com/users/cchandel","html_url":"https://github.com/cchandel","followers_url":"https://api.github.com/users/cchandel/followers","following_url":"https://api.github.com/users/cchandel/following{/other_user}","gists_url":"https://api.github.com/users/cchandel/gists{/gist_id}","starred_url":"https://api.github.com/users/cchandel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cchandel/subscriptions","organizations_url":"https://api.github.com/users/cchandel/orgs","repos_url":"https://api.github.com/users/cchandel/repos","events_url":"https://api.github.com/users/cchandel/events{/privacy}","received_events_url":"https://api.github.com/users/cchandel/received_events","type":"User","site_admin":false},"created_at":"2015-12-28T05:57:06Z","updated_at":"2015-12-28T05:57:06Z","body":"  Hi,\r\n  Code is as below.\r\n\r\nol3\r\nvar map = new ol.Map({\r\n  target: 'map',\r\n  layers: [\r\n  new ol.layer.Tile({\r\n      source: new ol.source.XYZ({\r\n        tileUrlFunction: ol.TileCacheUrlFunction.createTileUrlFunction( '//localhost/tiles/landmass/{0z}/{x1}/{x2}/{x3}/{-y1}/{-y2}/{-y3}.png')\r\n      })\r\n    })\r\n  ],\r\n  \r\n  view: new ol.View({\r\n    projection: 'EPSG:4326',\r\n    center: [72.8, 18.8],\r\n    zoom: 6\r\n  }),\r\n})\r\n\r\nol2 code\r\nvar globe = new OpenLayers.Layer.TileCache( \"Landmass\", \"../tiles\", \"landmass\", {isBaseLayer: true});\r\n  map = new OpenLayers.Map('map', {\r\n    maxExtent: new OpenLayers.Bounds(-180, -90, 180, 90),\r\n    resolutions: [0.158739, 0.063495, 0.031747, 0.015873, 0.006349, 0.003174, 0.001587, 0.000634, 0.000317, 0.000158, 0.000158, 0.000063, 0.000031]\r\n  });\r\n  map.addLayers([globe]);\r\n  map.setCenter(new OpenLayers.LonLat(72.8, 18.8), 6);"}}