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

Need ability for raster tiles to be added to map style as MGLRasterTileSource #16479

Open kostiag opened 4 years ago

kostiag commented 4 years ago

Platform: Mostly iOS/Mac (safari and mapbox view) but perhaps needed elsewhere Mapbox SDK version: latest

Steps to trigger behavior

Current problem: we have custom raster tiles and offline mapbox usage. We download all tiles during initial sync for later usage within the app. if the raster tiles are not large enough to cover complete area of the tiles they are a part of, black a area appears on the map since tiles are not transparent. This is an issue in Safari and on iOS devices, does not appear to be a problem in chrome. Per mapbox support: _"In order to get your raster tiles to show up as transparent, they need to be added to a map style as a MGLRasterTileSource, they can not already exist within the map style. Currently, there is no feature that allows you to add a rasterSource to your style and then create the Offline Map afterwards. "

Expected behavior

need tiles to be transparrent

Actual behavior