# Tile server + Mapbox

**URL:** <https://forum.inaturalist.org/t/tile-server-mapbox/35975>\
**Category:** General\
**Created:** [September 28, 2022, 6:50pm UTC](https://forum.inaturalist.org/t/tile-server-mapbox/35975 "2022-09-28T18:50:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewjmcgrath](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@andrewjmcgrath](https://forum.inaturalist.org/u/andrewjmcgrath)\
**Post date:** [September 28, 2022, 6:50pm UTC](https://forum.inaturalist.org/t/tile-server-mapbox/35975/1 "2022-09-28T18:50:01Z")

</div>

Hi all,

I’m working with the mapbox tile server ([https://api.inaturalist.org/v1/points/{z}/{x}/{y}@2x.png](https://api.inaturalist.org/v1/points/%7Bz%7D/%7Bx%7D/%7By%7D@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](https://forum.inaturalist.org/t/in-pursuit-of-mappiness-part-1/21864) and was alos guided to read [https://www.gbif.org/developer/maps](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](https://forum.inaturalist.org/t/create-a-live-map-service-for-arcmap-and-or-google-earth-with-inat-data-and-links/1512)

![image](https://us1.discourse-cdn.com/flex016/uploads/inaturalist/original/3X/c/e/ce5d2aa9051682038530affc39d55378a9508886.png)

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.

---

<div class="post-metadata">

**Author:** ![andrewjmcgrath](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@andrewjmcgrath](https://forum.inaturalist.org/u/andrewjmcgrath)\
**Post date:** [September 28, 2022, 7:20pm UTC](https://forum.inaturalist.org/t/tile-server-mapbox/35975/2 "2022-09-28T19:20:43Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![pisum](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@pisum](https://forum.inaturalist.org/u/pisum)\
**Post date:** [September 28, 2022, 7:40pm UTC](https://forum.inaturalist.org/t/tile-server-mapbox/35975/3 "2022-09-28T19:40:57Z")

</div>

i don’t see an actual bug here.

> [@andrewjmcgrath](#):
>
> Further reading on this error suggests that mapbox expects the vector source to be “uncompressed”.

the iNat API provides raster tiles, not vector tiles.

> [@andrewjmcgrath](#):
>
> I’m working with the mapbox tile server ([https://api.inaturalist.org/v1/points/{z}/{x}/{y}@2x.png](https://api.inaturalist.org/v1/points/%7Bz%7D/%7Bx%7D/%7By%7D@2x.png)) and

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](https://tiles.inaturalist.org/v1/grid/2/1/1.png?tile_size=512)

---

<div class="post-metadata">

**Author:** ![andrewjmcgrath](https://avatars.discourse-cdn.com/v4/letter/a/cc9497/32.png) [@andrewjmcgrath](https://forum.inaturalist.org/u/andrewjmcgrath)\
**Post date:** [September 28, 2022, 8:01pm UTC](https://forum.inaturalist.org/t/tile-server-mapbox/35975/4 "2022-09-28T20:01:33Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/inaturalist/original/2X/7/7831452cf7f0d653ff1ffd34176334b7ef1b6a17.png) [@system](https://forum.inaturalist.org/u/system)\
**Post date:** [November 27, 2022, 8:02pm UTC](https://forum.inaturalist.org/t/tile-server-mapbox/35975/5 "2022-11-27T20:02:07Z")

</div>

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