{"action":"created","issue":{"url":"https://api.github.com/repos/stamen/bluegreenway/issues/150","repository_url":"https://api.github.com/repos/stamen/bluegreenway","labels_url":"https://api.github.com/repos/stamen/bluegreenway/issues/150/labels{/name}","comments_url":"https://api.github.com/repos/stamen/bluegreenway/issues/150/comments","events_url":"https://api.github.com/repos/stamen/bluegreenway/issues/150/events","html_url":"https://github.com/stamen/bluegreenway/issues/150","id":162732659,"number":150,"title":"Stack multiple tile layers in Leaflet instead of using a single viz.json","user":{"login":"almccon","id":1212178,"avatar_url":"https://avatars.githubusercontent.com/u/1212178?v=3","gravatar_id":"","url":"https://api.github.com/users/almccon","html_url":"https://github.com/almccon","followers_url":"https://api.github.com/users/almccon/followers","following_url":"https://api.github.com/users/almccon/following{/other_user}","gists_url":"https://api.github.com/users/almccon/gists{/gist_id}","starred_url":"https://api.github.com/users/almccon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almccon/subscriptions","organizations_url":"https://api.github.com/users/almccon/orgs","repos_url":"https://api.github.com/users/almccon/repos","events_url":"https://api.github.com/users/almccon/events{/privacy}","received_events_url":"https://api.github.com/users/almccon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-28T16:44:42Z","updated_at":"2016-06-28T17:47:14Z","closed_at":null,"body":"For our free plan on CartoDB, we can only have four layers. As implemented now, the top three are the POIs, the bike network, and the green connections network. Then I use `UNION ALL` in SQL to combine everything else into the fourth layer, which is my true basemap (includes water, roads, parcels, projects, labels, etc). This fourth layer is everything which is visible permanently, and the top three are toggled on and off as layers within the CartoDB viz.json (see #66 and 3c082dab525b7b675445b0199ab94158aeae3f56).\r\n\r\nHowever, in order to make the labels (#148) and the bluegreenway line (#149) look good, I need more control over the ordering. I need the toggleable layers to stay underneath the labels and the bluegreenway.\r\n\r\nDo we have time to rearchitect the map so that we load more than one viz.json from CartoDB, and (potentially) toggle layers on and off by setting the visibility of the leaflet layer, rather than toggling layers _within_ a single viz.json? Toggling in Leaflet might eliminate the flicker that happens when the CartoDB toggle triggers a full reload of the tiles.\r\n\r\n@clhenrick I'll probably need your help with this because I'm not sure how/where to do this in a react app. Thoughts?"},"comment":{"url":"https://api.github.com/repos/stamen/bluegreenway/issues/comments/229126979","html_url":"https://github.com/stamen/bluegreenway/issues/150#issuecomment-229126979","issue_url":"https://api.github.com/repos/stamen/bluegreenway/issues/150","id":229126979,"user":{"login":"almccon","id":1212178,"avatar_url":"https://avatars.githubusercontent.com/u/1212178?v=3","gravatar_id":"","url":"https://api.github.com/users/almccon","html_url":"https://github.com/almccon","followers_url":"https://api.github.com/users/almccon/followers","following_url":"https://api.github.com/users/almccon/following{/other_user}","gists_url":"https://api.github.com/users/almccon/gists{/gist_id}","starred_url":"https://api.github.com/users/almccon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/almccon/subscriptions","organizations_url":"https://api.github.com/users/almccon/orgs","repos_url":"https://api.github.com/users/almccon/repos","events_url":"https://api.github.com/users/almccon/events{/privacy}","received_events_url":"https://api.github.com/users/almccon/received_events","type":"User","site_admin":false},"created_at":"2016-06-28T17:47:14Z","updated_at":"2016-06-28T17:47:14Z","body":"Currently this is the single viz.json we're using: https://bluegreenway.cartodb.com/viz/7d66aa96-2eb0-11e6-a298-0ecfd53eb7d3/map\r\n\r\nI'm going to split that up into multiple layers, each with their own viz.json. Will post links here shortly."}}
{"actor":{"display_login":"almccon"}}