简体   繁体   English

256x256 blob 平铺图像 react-native-mapbox-gl / 地图

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

Currently I am rendering over mapbox, various local tiles from a database as a blob.目前我正在 mapbox 上渲染数据库中的各种本地图块作为 blob。 I convert them to base64 and paint them on the map.我将它们转换为 base64 并将它们绘制在地图上。

The problem comes in that mapbox uses 512 tiles and my images are 256.问题在于 mapbox 使用 512 个图块,而我的图像是 256 个。

Is there a way to make mapbox display at 256?有没有办法让mapbox显示在256?

You can request tiles at 256x256.您可以请求 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.一些使用栅格地图瓦片的在线系统不支持 512x512 像素瓦片,因此我们还在此 API 中添加了对 256x256 像素瓦片的支持。 Now your maps can be integrated seamlessly into online web mapping systems like ArcGIS Online and CartoDB.现在,您的地图可以无缝集成到 ArcGIS Online 和 CartoDB 等在线 Web 制图系统中。

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对 256x256 像素图块的请求: 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看这篇文章: https : //blog.mapbox.com/512-map-tiles-cb5bfd6e72ba

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM