You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We normally generate the coordinates from a list of recorded locations, so if there aren't enough recorded locations, we violate the spec. Similar to this mapbox sample, which also runs into the same issue: https://docs.mapbox.com/mapbox-gl-js/example/animate-a-line/
However, mapbox-gl-js (internally geojson-vt) happily accepts this GeoJSON.
When we run geobuf on this, the generated feature looks like this:
One of our GeoJSON features violates https://tools.ietf.org/html/rfc7946#section-3.1.4:
Our feature looks like this:
We normally generate the coordinates from a list of recorded locations, so if there aren't enough recorded locations, we violate the spec. Similar to this mapbox sample, which also runs into the same issue: https://docs.mapbox.com/mapbox-gl-js/example/animate-a-line/
However, mapbox-gl-js (internally geojson-vt) happily accepts this GeoJSON.
When we run geobuf on this, the generated feature looks like this:
So the entire coordinates field is removed.
Suddenly mapbox-gl-js (internally geojson-vt) trips on this.
It's assumed to exist here and then accessed during conversion, which leads to errors.
I did not check if a similar issue exists for other types, but I'd assume so.
The text was updated successfully, but these errors were encountered: