{"action":"created","issue":{"url":"https://api.github.com/repos/naturalatlas/tilestrata-vtile-raster/issues/4","labels_url":"https://api.github.com/repos/naturalatlas/tilestrata-vtile-raster/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/naturalatlas/tilestrata-vtile-raster/issues/4/comments","events_url":"https://api.github.com/repos/naturalatlas/tilestrata-vtile-raster/issues/4/events","html_url":"https://github.com/naturalatlas/tilestrata-vtile-raster/pull/4","id":99213981,"number":4,"title":"Add support for remote vector tile","user":{"login":"yohanboniface","id":146023,"avatar_url":"https://avatars.githubusercontent.com/u/146023?v=3","gravatar_id":"","url":"https://api.github.com/users/yohanboniface","html_url":"https://github.com/yohanboniface","followers_url":"https://api.github.com/users/yohanboniface/followers","following_url":"https://api.github.com/users/yohanboniface/following{/other_user}","gists_url":"https://api.github.com/users/yohanboniface/gists{/gist_id}","starred_url":"https://api.github.com/users/yohanboniface/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yohanboniface/subscriptions","organizations_url":"https://api.github.com/users/yohanboniface/orgs","repos_url":"https://api.github.com/users/yohanboniface/repos","events_url":"https://api.github.com/users/yohanboniface/events{/privacy}","received_events_url":"https://api.github.com/users/yohanboniface/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-05T14:13:50Z","updated_at":"2015-08-06T09:04:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/naturalatlas/tilestrata-vtile-raster/pulls/4","html_url":"https://github.com/naturalatlas/tilestrata-vtile-raster/pull/4","diff_url":"https://github.com/naturalatlas/tilestrata-vtile-raster/pull/4.diff","patch_url":"https://github.com/naturalatlas/tilestrata-vtile-raster/pull/4.patch"},"body":"Hi :)\r\n\r\nThis is a suggestion to add support for remote vector tiles, pushed for discussion.\r\nThis is our current use case, and I guess it will be for others, as soon as you want to separate the vector tiles provider server and the servers that style those tiles to produce raster images.\r\n\r\nThis implementation also changes the options API: instead of having hard coded a two indices array, we pass an object as `tilesource`, which defines the behaviour: use `tilestrata-vtile` dependecy (and then pass `layer` and `file` keys), or use a remote URL with TMS format. This change is to allow more format to be supported in the future (like a tilejson URL, or maybe a local directory with tiles).\r\n\r\nI'm just playing around with tilestrata (nice move :) ) since today, so I may be totally missing a concept.\r\nI've first thought about making my own plugin instead of trying to patch this one, but I quickly changed my mind because of the amount of code duplication.\r\n\r\nThanks for your review!"},"comment":{"url":"https://api.github.com/repos/naturalatlas/tilestrata-vtile-raster/issues/comments/128298762","html_url":"https://github.com/naturalatlas/tilestrata-vtile-raster/pull/4#issuecomment-128298762","issue_url":"https://api.github.com/repos/naturalatlas/tilestrata-vtile-raster/issues/4","id":128298762,"user":{"login":"yohanboniface","id":146023,"avatar_url":"https://avatars.githubusercontent.com/u/146023?v=3","gravatar_id":"","url":"https://api.github.com/users/yohanboniface","html_url":"https://github.com/yohanboniface","followers_url":"https://api.github.com/users/yohanboniface/followers","following_url":"https://api.github.com/users/yohanboniface/following{/other_user}","gists_url":"https://api.github.com/users/yohanboniface/gists{/gist_id}","starred_url":"https://api.github.com/users/yohanboniface/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yohanboniface/subscriptions","organizations_url":"https://api.github.com/users/yohanboniface/orgs","repos_url":"https://api.github.com/users/yohanboniface/repos","events_url":"https://api.github.com/users/yohanboniface/events{/privacy}","received_events_url":"https://api.github.com/users/yohanboniface/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T09:04:26Z","updated_at":"2015-08-06T09:04:26Z","body":"Ah, also, it would be nice to add an [.eslintrc file](http://eslint.org/) to the project, so it's easier for contributors to know which JS conventions to follow. ([For example](https://github.com/kosmtik/kosmtik/blob/master/.eslintrc))."}}