{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-style-spec/issues/212","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-style-spec/issues/212/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-style-spec/issues/212/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-style-spec/issues/212/events","html_url":"https://github.com/mapbox/mapbox-gl-style-spec/issues/212","id":48572299,"number":212,"title":"Hide some layers","user":{"login":"donpark","id":127594,"avatar_url":"https://avatars.githubusercontent.com/u/127594?v=3","gravatar_id":"","url":"https://api.github.com/users/donpark","html_url":"https://github.com/donpark","followers_url":"https://api.github.com/users/donpark/followers","following_url":"https://api.github.com/users/donpark/following{/other_user}","gists_url":"https://api.github.com/users/donpark/gists{/gist_id}","starred_url":"https://api.github.com/users/donpark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donpark/subscriptions","organizations_url":"https://api.github.com/users/donpark/orgs","repos_url":"https://api.github.com/users/donpark/repos","events_url":"https://api.github.com/users/donpark/events{/privacy}","received_events_url":"https://api.github.com/users/donpark/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-11-12T22:33:29Z","updated_at":"2015-01-13T00:13:08Z","closed_at":null,"body":"I've been looking at two bundled styles, bright and outdoors, looking for ways to cleanly (no warning messages) hide layers.\r\n\r\nUnless I'm mistaken, my options are:\r\n\r\n1. delete layer from style JSON - destructive change makes ad-hoc experiments cumbersome.\r\n2. overide layer by adding another layer with same ID - haven't tried because it's a hack that depends on styler implementation.\r\n3. add empty filter or modify existing filter to fail - again, destructive change\r\n\r\nIs there a built-in attribute specifying visibility of a layer?\r\n\r\nBeyond this need, I would like to know if ability to change visibility of one or more layers (via some grouping mechanism at style JSON level) at runtime is planned."},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-style-spec/issues/comments/69672970","html_url":"https://github.com/mapbox/mapbox-gl-style-spec/issues/212#issuecomment-69672970","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-style-spec/issues/212","id":69672970,"user":{"login":"jfirebaugh","id":98601,"avatar_url":"https://avatars.githubusercontent.com/u/98601?v=3","gravatar_id":"","url":"https://api.github.com/users/jfirebaugh","html_url":"https://github.com/jfirebaugh","followers_url":"https://api.github.com/users/jfirebaugh/followers","following_url":"https://api.github.com/users/jfirebaugh/following{/other_user}","gists_url":"https://api.github.com/users/jfirebaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/jfirebaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfirebaugh/subscriptions","organizations_url":"https://api.github.com/users/jfirebaugh/orgs","repos_url":"https://api.github.com/users/jfirebaugh/repos","events_url":"https://api.github.com/users/jfirebaugh/events{/privacy}","received_events_url":"https://api.github.com/users/jfirebaugh/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T00:13:08Z","updated_at":"2015-01-13T00:13:08Z","body":"What, concretely, is the advantage of an explicit `hide: true` property over `opacity: 0`? How would you expect transitions work across a change to this property?"}}