-
Notifications
You must be signed in to change notification settings - Fork 1.3k
MGLRasterStyleLayer not fully implemented #7490
Comments
Does the code above work for you? What are you seeing instead of the raster tiles?
#7337 does in fact add an example for using MGLRasterStyleLayer. I hope the prose documentation added in #7475 will also help to clear up the distinctions between the various sources and style layers. These improvements will be in the upcoming beta or release candidate of the SDK. |
Actually, with the exemple above, no raster tiles appear. I just see the Mapbox map setup by the 'Style URL' of the MapView in the Interface Builder. Maybe I missing some MGLTileSourceOption : var options = [MGLTileSourceOption: Any?]()
options[MGLTileSourceOption.minimumZoomLevel] = 1
options[MGLTileSourceOption.maximumZoomLevel] = 16
options[MGLTileSourceOption.tileSize] = 256 |
When does this code run? Because the style loads asynchronously, any code that modifies the style should run inside |
Oh yeah, that's the problem. I came from Android and I forget that I need to execute this in a specific place. Tks for the help. |
I think this will be a common pitfall for developers, so #7512 would warn when you say |
Platform: iOS
Mapbox SDK version: 3.4.0 Beta 5
I don't know how to display raster sources on top of a Mapbox map in the actual Beta. The documentation cover only the MGLRasterSource, and not MGLRasterStyleLayer. And other layers didn't seem to suite.
Behavior
Sample
The text was updated successfully, but these errors were encountered: