mapbox / mapbox-gl-native

Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL
https://mapbox.com/mobile
Other
4.35k stars 1.33k forks source link

API returns different backgrounds for tiles of size 256 and 512 #16569

Open thiscris opened 3 years ago

thiscris commented 3 years ago

Hello, I am not sure if I am reporting this to the correct repository. I made a map with transparent background and it shows transparent in 512x512 tiles but black in 256x256 tiles. It isn't dependent on the code or platform, this is what is returned by the API

Working example: https://api.mapbox.com/styles/v1/thiscris/cki9w80uw27cp19phlaxbmds6/tiles/5/17/10?access_token=pk.eyJ1IjoidGhpc2NyaXMiLCJhIjoiY2tpNzV5Y2hxMGxqNDMwbXE0bmRpdXBwYSJ9.HpVl6ea7-T8pzav2_qqcgg

Broken example: https://api.mapbox.com/styles/v1/thiscris/cki9w80uw27cp19phlaxbmds6/tiles/256/5/17/10?access_token=pk.eyJ1IjoidGhpc2NyaXMiLCJhIjoiY2tpNzV5Y2hxMGxqNDMwbXE0bmRpdXBwYSJ9.HpVl6ea7-T8pzav2_qqcgg

Platform: any Mapbox SDK version: none

Steps to trigger behavior

  1. creat a map style in mapbox studio
  2. set the base background alpha to zero
  3. publish
  4. Open the url of a tile of size 256 and one of size 512

Expected behavior

Both tiles to have the same kind of transparent background

Actual behavior

The 256 size tile has a colored background ???