Mapbox crashes when using "aboveLayerID" property
See original GitHub issueDescribe the bug Mapbox crashes when using “aboveLayerID” property.
To Reproduce
Add various layers and set one of the layers to appear “above” the other as follows:
<Mapbox.VectorSource
id="customSourceExample"
url={VECTOR_SOURCE_URL}
>
<Mapbox.FillLayer
id="customSourceFill"
sourceLayerID="roadless"
style={mbStyles.boxFill}
aboveLayerID="basemap"
/>
</Mapbox.VectorSource>
<Mapbox.RasterSource id="rasterSourceBasemap" tileSize={256} url={url}>
<Mapbox.RasterLayer
id="basemap"
sourceID="rasterSourceBasemap"
style={{rasterOpacity: 1}}
/>
</Mapbox.RasterSource>
Expected behavior In the above example, the Vector FillLayer should appear above the RasterLayer based on the property defined aboveLayerID=“basemap”
Screenshots xCode crashes:
Versions (please complete the following information):
- Platfrom: iOS
- Device: XR Simulator
- React Native Version 0.59
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Mapbox crashes when using "aboveLayerID" property #52
Describe the bug Mapbox crashes when using "aboveLayerID" property. To Reproduce Add various layers and set one of the layers to appear ...
Read more >rnmapbox/Lobby - Gitter
I'm fighting with a crash react-native application on unblocking iPhone which is somehow connected with react-native-mapbox-gl module.
Read more >React native mapbox-gl crashes with react-navigation
My solution was to render map only when modal is expanded. So I made a conditional rendering. Checked whether modal is shrinked or...
Read more >changelog - CocoaPods
(#9865); Fixed an issue that could cause a crash when using -[MGLMapView ... localizesLabels property, off by default, that localizes any Mapbox ......
Read more >A Mapbox GL react native module for creating custom maps
Implement react-native-mapbox-gl with how-to, Q&A, fixes, code snippets. kandi ... 'mapbox' // Use the secret token you stored in gradle.properties as the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@systemlevel with #57 you should be able to declare in any order and RNMapbox should wait for the layer to be inserted bellow.
@mfazekas Doing some more testing on this tonight. I’m still having some issues getting the aboveLayerID property working.
Here is some more context:
I’m able to control the visibility but I’m unable to control where they sit in relation to the RasterSource layer: