MapLibre's own LngLatLike only permits a [number, number] tuple, but
LngLat.convert accepts any two- or three-element array at runtime - which is
exactly the shape of a GeoJSON.Position. Accepting it here means a
feature.geometry.coordinates can be bound straight to an input, without the
cast that the narrower type would otherwise force on every caller.
Anything MapLibre accepts as a coordinate.
MapLibre's own
LngLatLikeonly permits a[number, number]tuple, butLngLat.convertaccepts any two- or three-element array at runtime - which is exactly the shape of aGeoJSON.Position. Accepting it here means afeature.geometry.coordinatescan be bound straight to an input, without the cast that the narrower type would otherwise force on every caller.