{"action":"opened","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/3419","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-js","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/3419/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/3419/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/3419/events","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/3419","id":184122878,"number":3419,"title":"Clustering points with a source that contains points, polygons, and lines or any combo","user":{"login":"jolesbi","id":6021933,"avatar_url":"https://avatars.githubusercontent.com/u/6021933?v=3","gravatar_id":"","url":"https://api.github.com/users/jolesbi","html_url":"https://github.com/jolesbi","followers_url":"https://api.github.com/users/jolesbi/followers","following_url":"https://api.github.com/users/jolesbi/following{/other_user}","gists_url":"https://api.github.com/users/jolesbi/gists{/gist_id}","starred_url":"https://api.github.com/users/jolesbi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jolesbi/subscriptions","organizations_url":"https://api.github.com/users/jolesbi/orgs","repos_url":"https://api.github.com/users/jolesbi/repos","events_url":"https://api.github.com/users/jolesbi/events{/privacy}","received_events_url":"https://api.github.com/users/jolesbi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-20T02:51:34Z","updated_at":"2016-10-20T02:51:34Z","closed_at":null,"body":"**mapbox-gl-js version 0.26.0**:\r\n\r\nI'm working on an angular app where it's difficult to know in advance if the GeoJSON data will include points, lines, polygons or a any combination of the possibilities.\r\n\r\n### Steps to Trigger Behavior\r\n\r\n 1. load polygons or lines into a Mapbox GL map\r\n 2. on `map.addSource()` set `cluster:true`\r\n 3. add a layer of polygons or lines `map.addLayer()`\r\n 4. view map in browser\r\n\r\n### Expected Behavior\r\n\r\nIf clustering is turned on, but the data is comprised of lines or polygons, it would be great if the map would still render the valid GeoJSON. If there is a combination of lines, polygons, and points - it would be nice if Mapbox GL would render the lines and polygons normally, while clustering the points as expected.\r\n\r\n### Actual Behavior\r\n\r\nThe map does not render any points, lines, or polygons.\r\n\r\nThank you kindly."}}
{"actor":{"display_login":"jolesbi"}}