mapbox-gl-directions
mapbox-gl-directions copied to clipboard
Invalid geojson (route feature lacks type)
This doesn't seem to matter, but the GeoJSON source added to the map isn't actually valid. The route segments are of this form:
{
"properties": { ... },
"geometry": { ... }
}
and are missing "type": "Feature"