{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1407","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1407/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1407/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1407/events","html_url":"https://github.com/mapbox/mapbox-gl-js/pull/1407","id":99064319,"number":1407,"title":"Unset layout and paint properties","user":{"login":"scothis","id":302992,"avatar_url":"https://avatars.githubusercontent.com/u/302992?v=3","gravatar_id":"","url":"https://api.github.com/users/scothis","html_url":"https://github.com/scothis","followers_url":"https://api.github.com/users/scothis/followers","following_url":"https://api.github.com/users/scothis/following{/other_user}","gists_url":"https://api.github.com/users/scothis/gists{/gist_id}","starred_url":"https://api.github.com/users/scothis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scothis/subscriptions","organizations_url":"https://api.github.com/users/scothis/orgs","repos_url":"https://api.github.com/users/scothis/repos","events_url":"https://api.github.com/users/scothis/events{/privacy}","received_events_url":"https://api.github.com/users/scothis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-04T21:18:14Z","updated_at":"2015-08-04T21:23:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/pulls/1407","html_url":"https://github.com/mapbox/mapbox-gl-js/pull/1407","diff_url":"https://github.com/mapbox/mapbox-gl-js/pull/1407.diff","patch_url":"https://github.com/mapbox/mapbox-gl-js/pull/1407.patch"},"body":"Previously, there was no way to remove a layout or paint property,\r\nrestoring to the default value. You would have to explicitly set the\r\nproperty to the default.\r\n\r\nNow, calling `map.setLayoutProperty('prop', null)` or\r\n`map.setPaintProperty('prop', null)` will reset the value of 'prop' to\r\nthe default value."},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/comments/127765901","html_url":"https://github.com/mapbox/mapbox-gl-js/pull/1407#issuecomment-127765901","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/1407","id":127765901,"user":{"login":"tmcw","id":32314,"avatar_url":"https://avatars.githubusercontent.com/u/32314?v=3","gravatar_id":"","url":"https://api.github.com/users/tmcw","html_url":"https://github.com/tmcw","followers_url":"https://api.github.com/users/tmcw/followers","following_url":"https://api.github.com/users/tmcw/following{/other_user}","gists_url":"https://api.github.com/users/tmcw/gists{/gist_id}","starred_url":"https://api.github.com/users/tmcw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmcw/subscriptions","organizations_url":"https://api.github.com/users/tmcw/orgs","repos_url":"https://api.github.com/users/tmcw/repos","events_url":"https://api.github.com/users/tmcw/events{/privacy}","received_events_url":"https://api.github.com/users/tmcw/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T21:23:19Z","updated_at":"2015-08-04T21:23:19Z","body":"This is kind of a taste thing, but what about calling `map.setLayoutProperty('prop', undefined)` instead? Unset properties are more undefinedish than nullish."}}