{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1062","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1062/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1062/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1062/events","html_url":"https://github.com/mapbox/mapbox-gl-native/pull/1062","id":63574294,"number":1062,"title":"Reset applied style classes when not Hybrid","user":{"login":"friedbunny","id":1198851,"avatar_url":"https://avatars.githubusercontent.com/u/1198851?v=3","gravatar_id":"","url":"https://api.github.com/users/friedbunny","html_url":"https://github.com/friedbunny","followers_url":"https://api.github.com/users/friedbunny/followers","following_url":"https://api.github.com/users/friedbunny/following{/other_user}","gists_url":"https://api.github.com/users/friedbunny/gists{/gist_id}","starred_url":"https://api.github.com/users/friedbunny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/friedbunny/subscriptions","organizations_url":"https://api.github.com/users/friedbunny/orgs","repos_url":"https://api.github.com/users/friedbunny/repos","events_url":"https://api.github.com/users/friedbunny/events{/privacy}","received_events_url":"https://api.github.com/users/friedbunny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-22T20:44:12Z","updated_at":"2015-03-23T00:06:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/pulls/1062","html_url":"https://github.com/mapbox/mapbox-gl-native/pull/1062","diff_url":"https://github.com/mapbox/mapbox-gl-native/pull/1062.diff","patch_url":"https://github.com/mapbox/mapbox-gl-native/pull/1062.patch"},"body":"This fixes the issue of Hybrid's contours and labels still being applied to Satellite, which can happen if one keeps flipping through the styles in the demo app. The applied style classes never got reset, but only Satellite possesses those classes and would draw them.\r\n\r\n@incanus, @1ec5: Is there/will there be a better way to do this? My patch would seem to lack any finesse."},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/comments/84735359","html_url":"https://github.com/mapbox/mapbox-gl-native/pull/1062#issuecomment-84735359","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-native/issues/1062","id":84735359,"user":{"login":"friedbunny","id":1198851,"avatar_url":"https://avatars.githubusercontent.com/u/1198851?v=3","gravatar_id":"","url":"https://api.github.com/users/friedbunny","html_url":"https://github.com/friedbunny","followers_url":"https://api.github.com/users/friedbunny/followers","following_url":"https://api.github.com/users/friedbunny/following{/other_user}","gists_url":"https://api.github.com/users/friedbunny/gists{/gist_id}","starred_url":"https://api.github.com/users/friedbunny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/friedbunny/subscriptions","organizations_url":"https://api.github.com/users/friedbunny/orgs","repos_url":"https://api.github.com/users/friedbunny/repos","events_url":"https://api.github.com/users/friedbunny/events{/privacy}","received_events_url":"https://api.github.com/users/friedbunny/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T00:06:52Z","updated_at":"2015-03-23T00:06:52Z","body":"It looks like the best place to fix this is in `Map::start` `asyncTerminate` by simply adding `classes.clear()`. This works to reset the applied classes on base style changes and I don't see any immediate side-effects."}}