I’m working with the mapbox tile server (https://api.inaturalist.org/v1/points/{z}/{x}/{y}@2x.png) and looking to render this data on a mapbox map. When i set up the source and add the layer to my mapbox-gl map i get a rather useless error of “Unimplemented type: 6”.
Further reading on this error suggests that mapbox expects the vector source to be “uncompressed”.
I’m wondering if there is any further documentation on the tile server to help me out here.
I realize none of this is super descriptive, but if anyone has run across this and resolve it…or even just has ideas I’d love some help. I really want to stick with mapbox but maybe thats not a logical path forward.
So it seems there is no gzip compression on these tiles I’m getting back. I thought i’d try do something super smart and proxy this via CloudFront and just disable gzip, but that lead me to notice theres no Content-Encoding header being returned when i request a tile from this service.
Is anyone able to confirm if i’m seeing this correctly? If so i’ll take this info over to mapbox for further guidance.
the iNat API provides raster tiles, not vector tiles.
i haven’t tried, but i’m not sure @2x is a valid option in the iNat API. (that is GBIF’s API syntax.) i think the proper way to specify a particular iNat tile size (in pixels) is to use parameters in the request URL like so: https://tiles.inaturalist.org/v1/grid/2/1/1.png?tile_size=512