{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/3710","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-js","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/3710/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/3710/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/3710/events","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/3710","id":192157015,"number":3710,"title":"Adding layers with interactive:true should not cause a hard fail","user":{"login":"samanpwbb","id":108094,"avatar_url":"https://avatars.githubusercontent.com/u/108094?v=3","gravatar_id":"","url":"https://api.github.com/users/samanpwbb","html_url":"https://github.com/samanpwbb","followers_url":"https://api.github.com/users/samanpwbb/followers","following_url":"https://api.github.com/users/samanpwbb/following{/other_user}","gists_url":"https://api.github.com/users/samanpwbb/gists{/gist_id}","starred_url":"https://api.github.com/users/samanpwbb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samanpwbb/subscriptions","organizations_url":"https://api.github.com/users/samanpwbb/orgs","repos_url":"https://api.github.com/users/samanpwbb/repos","events_url":"https://api.github.com/users/samanpwbb/events{/privacy}","received_events_url":"https://api.github.com/users/samanpwbb/received_events","type":"User","site_admin":false},"labels":[{"id":31015436,"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/labels/bug","name":"bug","color":"0052cc","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-29T00:37:47Z","updated_at":"2016-11-29T18:52:31Z","closed_at":null,"body":"<!--\r\nHello! Thanks for contributing. \r\n\r\nIf you are reporting a bug, please:\r\n - Make the issue title a succinct but specific description of the unexpected behavior. Bad: \"Map rotation is broken\". Good: \"map.setBearing(...) throws a TypeError for negative values\"\r\n - Include a link to a minimal demonstration of the bug. We recommend using https://jsbin.com\r\n - Ensure you can reproduce the bug using the latest release.\r\n - Check the console for relevant errors and warnings\r\n - Only post to report a bug or request a feature. Direct all other questions to https://stackoverflow.com/questions/tagged/mapbox-gl-js\r\n \r\nIf you are requesting a new feature or suggesting a big change, please:\r\n - Copy the Mapbox GL RFC template into this ticket and fill out as much as you can https://raw.githubusercontent.com/mapbox/mapbox-gl/master/RFC_TEMPLATE.md\r\n  - Make the issue title a succinct but specific description of your use case or the desired functionality. Bad: \"More clustering options\". Good: \"Compute and expose aggregated values when clustering GeoJSON\".\r\n-->\r\n\r\n**mapbox-gl-js version**:\r\n\r\n### Steps to Trigger Behavior\r\n\r\n1. Go to https://jsbin.com/bejisuxeci/edit\r\n2. Look in console, see `Error: layers.first: unknown property \"interactive...`\r\n\r\n### Expected Behavior\r\n\r\nI expect to see a water layer. For backwards compatibility reasons, Mapbox Studio exports all stylesheets with `\"interactive\": true` on every style layer. Initially importing a style with `\"interactive\": true` works fine, but dynamically adding a layer with `\"interactive\" :true` fails. This is confusing, since I expect to be able to do things like copy an existing layer, modify it, and then add it to a stylesheet with addLayer.\r\n\r\n### Actual Behavior\r\n\r\nNo water layer renders, map is blank."},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/comments/263662263","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/3710#issuecomment-263662263","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/3710","id":263662263,"user":{"login":"lucaswoj","id":281306,"avatar_url":"https://avatars.githubusercontent.com/u/281306?v=3","gravatar_id":"","url":"https://api.github.com/users/lucaswoj","html_url":"https://github.com/lucaswoj","followers_url":"https://api.github.com/users/lucaswoj/followers","following_url":"https://api.github.com/users/lucaswoj/following{/other_user}","gists_url":"https://api.github.com/users/lucaswoj/gists{/gist_id}","starred_url":"https://api.github.com/users/lucaswoj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucaswoj/subscriptions","organizations_url":"https://api.github.com/users/lucaswoj/orgs","repos_url":"https://api.github.com/users/lucaswoj/repos","events_url":"https://api.github.com/users/lucaswoj/events{/privacy}","received_events_url":"https://api.github.com/users/lucaswoj/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T18:52:31Z","updated_at":"2016-11-29T18:52:31Z","body":"@samanpwbb As of https://github.com/mapbox/mapbox-gl-js/pull/3714 it'll never be an error "}}
{"actor":{"display_login":"lucaswoj"}}