256x256 blob tile image react-native-mapbox-gl / maps

Viewed 278

Currently I am rendering over mapbox, various local tiles from a database as a blob. I convert them to base64 and paint them on the map.

The problem comes in that mapbox uses 512 tiles and my images are 256.

Is there a way to make mapbox display at 256?

1 Answers

You can request tiles at 256x256. This should work. I have been searching for my own map for a little while.

Some online systems that consume raster map tiles do not support 512x512 pixel tiles, so we have also added support for 256x256 pixel tiles to this API. Now your maps can be integrated seamlessly into online web mapping systems like ArcGIS Online and CartoDB.

A request for a 256x256 pixel tile: https://api.mapbox.com/styles/v1/mapbox/streets-v9/tiles/256/0/0/0?access_token=access_token

See this article: https://blog.mapbox.com/512-map-tiles-cb5bfd6e72ba

Related