Tile server + Mapbox

Hi all,

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.

So far I’ve found: https://forum.inaturalist.org/t/in-pursuit-of-mappiness-part-1/21864 and was alos guided to read https://www.gbif.org/developer/maps
There’s also some discussion here: https://forum.inaturalist.org/t/create-a-live-map-service-for-arcmap-and-or-google-earth-with-inat-data-and-links/1512

image

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.

i don’t see an actual bug here.

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

1 Like

Yeah you’re right this isn’t a bug. It’s a combination of me not knowing what i’m doing and not knowing where else to ask for help!

Your remarks were helpful, I was overlooking that this is a raster and not a vector service. That got it rendering. Thanks for chiming in!

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.