{"action":"created","issue":{"url":"https://api.github.com/repos/klokantech/tileserver-gl/issues/58","repository_url":"https://api.github.com/repos/klokantech/tileserver-gl","labels_url":"https://api.github.com/repos/klokantech/tileserver-gl/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/klokantech/tileserver-gl/issues/58/comments","events_url":"https://api.github.com/repos/klokantech/tileserver-gl/issues/58/events","html_url":"https://github.com/klokantech/tileserver-gl/issues/58","id":181664140,"number":58,"title":"Using with Leaflet","user":{"login":"daniyel","id":356247,"avatar_url":"https://avatars.githubusercontent.com/u/356247?v=3","gravatar_id":"","url":"https://api.github.com/users/daniyel","html_url":"https://github.com/daniyel","followers_url":"https://api.github.com/users/daniyel/followers","following_url":"https://api.github.com/users/daniyel/following{/other_user}","gists_url":"https://api.github.com/users/daniyel/gists{/gist_id}","starred_url":"https://api.github.com/users/daniyel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daniyel/subscriptions","organizations_url":"https://api.github.com/users/daniyel/orgs","repos_url":"https://api.github.com/users/daniyel/repos","events_url":"https://api.github.com/users/daniyel/events{/privacy}","received_events_url":"https://api.github.com/users/daniyel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-07T13:06:59Z","updated_at":"2016-10-07T13:13:55Z","closed_at":null,"body":"Hi.\r\n\r\nWe are using the tileserver-gl for our new maps. We are already using Leaflet.js for interactions with the map. So far the tileserver-gl viewer is working, we can navigate through the map, we see our styles, font family, etc. But when we load the URL through the Leaflet then we are getting 404 errors. Are we doing something wrong? For maps we are using planet.mbtiles, which we downloaded recently from http://osm2vectortiles.org/ page.\r\n\r\nURL we are using is: **https://subdomain.domain.net/styles/js/{z}/{x}/{y}.png**\r\n\r\nAnd Leaflet code goes:\r\n\r\n```\r\n...\r\nvar map = L.map(id);\r\n\r\nL.tileLayer('https://subdomain.domain.net/styles/js/{z}/{x}/{y}.png', {\r\n\tmaxZoom: 18\r\n}).addTo(map);\r\n\r\nmap.scrollWheelZoom.disable();\r\n...\r\n```\r\n\r\nconfig.json\r\n```\r\n{\r\n  \"options\": {\r\n    \"paths\": {\r\n      \"root\": \"\",\r\n      \"fonts\": \"glyphs\",\r\n      \"sprites\": \"sprites\",\r\n      \"styles\": \"styles\",\r\n      \"mbtiles\": \"data\"\r\n    },\r\n    \"formatEncoding\": {\r\n      \"png\": 6,\r\n      \"jpeg\": 80,\r\n      \"webp\": 90\r\n    }\r\n  },\r\n  \"styles\": {\r\n\t\"js\": {\r\n      \"style\": \"js.json\",\r\n      \"tilejson\": {\r\n        \"type\": \"overlay\",\r\n        \"bounds\": [8.529446, 47.364758, 8.55232, 47.380539]\r\n      }\r\n    }\r\n  },\r\n  \"data\": {\r\n    \"planet-vector\": {\r\n      \"mbtiles\": \"planet.mbtiles\"\r\n    }\r\n  }\r\n}\r\n```\r\nin styles/js.json we have this part as:\r\n```\r\n...\r\n\"sources\": {\r\n   \"mapbox\": {\r\n        \"url\": \"mbtiles://planet.mbtiles\",\r\n        \"type\": \"vector\"\r\n    }\r\n},\r\n...\r\n```\r\n\r\nAre we missing something?\r\n\r\nBest regards."},"comment":{"url":"https://api.github.com/repos/klokantech/tileserver-gl/issues/comments/252248606","html_url":"https://github.com/klokantech/tileserver-gl/issues/58#issuecomment-252248606","issue_url":"https://api.github.com/repos/klokantech/tileserver-gl/issues/58","id":252248606,"user":{"login":"petrsloup","id":707817,"avatar_url":"https://avatars.githubusercontent.com/u/707817?v=3","gravatar_id":"","url":"https://api.github.com/users/petrsloup","html_url":"https://github.com/petrsloup","followers_url":"https://api.github.com/users/petrsloup/followers","following_url":"https://api.github.com/users/petrsloup/following{/other_user}","gists_url":"https://api.github.com/users/petrsloup/gists{/gist_id}","starred_url":"https://api.github.com/users/petrsloup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petrsloup/subscriptions","organizations_url":"https://api.github.com/users/petrsloup/orgs","repos_url":"https://api.github.com/users/petrsloup/repos","events_url":"https://api.github.com/users/petrsloup/events{/privacy}","received_events_url":"https://api.github.com/users/petrsloup/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T13:13:55Z","updated_at":"2016-10-07T13:13:55Z","body":"Hi,\r\n\r\nif you try to access some tiles manually (e.g. https://subdomain.domain.net/styles/js/0/0/0.png) is it working correctly?"}}
{"actor":{"display_login":"petrsloup"}}