{"action":"opened","issue":{"url":"https://api.github.com/repos/mapzen/mapzen.js/issues/260","repository_url":"https://api.github.com/repos/mapzen/mapzen.js","labels_url":"https://api.github.com/repos/mapzen/mapzen.js/issues/260/labels{/name}","comments_url":"https://api.github.com/repos/mapzen/mapzen.js/issues/260/comments","events_url":"https://api.github.com/repos/mapzen/mapzen.js/issues/260/events","html_url":"https://github.com/mapzen/mapzen.js/issues/260","id":182619827,"number":260,"title":"expose Tangram layer options object","user":{"login":"meetar","id":459970,"avatar_url":"https://avatars.githubusercontent.com/u/459970?v=3","gravatar_id":"","url":"https://api.github.com/users/meetar","html_url":"https://github.com/meetar","followers_url":"https://api.github.com/users/meetar/followers","following_url":"https://api.github.com/users/meetar/following{/other_user}","gists_url":"https://api.github.com/users/meetar/gists{/gist_id}","starred_url":"https://api.github.com/users/meetar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meetar/subscriptions","organizations_url":"https://api.github.com/users/meetar/orgs","repos_url":"https://api.github.com/users/meetar/repos","events_url":"https://api.github.com/users/meetar/events{/privacy}","received_events_url":"https://api.github.com/users/meetar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-12T20:01:57Z","updated_at":"2016-10-12T20:01:57Z","closed_at":null,"body":"With vanilla Tangram.js, Tangram layer options are set with an options object passed to the `Tangram.leafletLayer` function, like so:\r\n\r\n```javascript\r\nvar layer = Tangram.leafletLayer({\r\n    preUpdate: myPreUpdateFunction,\r\n    postUpdate: function(didRender) {\r\n        console.log('postUpdate!');\r\n        if (didRender) {\r\n            console.log('new frame rendered!');\r\n        }\r\n    },\r\n    ...\r\n});\r\n```\r\n\r\nThe options object is documented here: https://github.com/tangrams/tangram-docs/blob/gh-pages/pages/Tangram-Overview.md#options-object\r\n \r\nSome of these options such as `scene` and `attribution` are already settable individually via the mapzen.js `Mapzen.map` function, but not all of them… and once the layer is created, it's too late to set them. Would it be possible to either support them all or expose the leafletLayer.options object directly somehow through mapzen.js?"}}
{"actor":{"display_login":"meetar"}}