Render a FeatureCollection from a GeoJSON file with multiple types in Mapbox-GL-JS
<p>We are currently loading layers into mapbox GL from geojson data. If our geojson has a feature collection that contains points and polygons, there does not seem to be a way to have mapbox gl show both because of how you need to set the type of layer. </p>

<p>Is there a way to have multiple types for a layer? It seems as if it can't handle multiple.</p>

<pre><code>   map.addLayer({
    "id": "route",
    "type": "line", //THIS SEEMS TO BE THE LIMITATION
    "source": "route",
   });
</code></pre>