[Bug]: Raster Particle Layer not visible on iOS
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 2.9k
- Forks
- 947
- Avg merge
- 6d 37m
- Merged PRs (30d)
- 1
Description
Mapbox Implementation
Mapbox
Mapbox Version
11.16.2
React Native Version
0.79.3
React Native Architecture
New Architecture (Fabric/TurboModules)
Platform
iOS
@rnmapbox/maps version
10.2.10
Standalone component to reproduce
import React from 'react';
import {
MapView,
RasterArraySource,
LineLayer,
RasterParticleLayer,
Camera
} from '@rnmapbox/maps';
class BugReportExample extends React.Component {
render() {
return (
<MapView style={{flex: 1}}>
<Camera defaultSettings={{
centerCoordinate: [-98.0, 38.0],
zoomLevel: 3,
}} />
<RasterArraySource
id="wind-source"
url="mapbox://mapbox.gfs-winds"
tileSize={512}
>
<RasterParticleLayer
id="wind-particles"
sourceLayerID="10winds"
style={{
rasterParticleSpeedFactor: 0.4,
rasterParticleMaxSpeed: 70,
rasterParticleCount: 2048,
rasterParticleFadeOpacityFactor: 0.9,
rasterParticleColor: [
'interpolate',
['linear'],
['raster-particle-speed'],
0, 'rgba(0, 100, 255, 0)',
50, 'rgba(255, 255, 0, 0.8)',
100, 'rgba(255, 50, 0, 0.8)',
],
}}
/>
</RasterArraySource>
</MapView>
);
}
}
Observed behavior and steps to reproduce
This raster particle layer will only visualize on android and does not show up on the iOS simulator. I can not see the layer. I don't get any errors.
Expected behavior
Layer shows up.
Notes / preliminary analysis
No response
Additional links and references
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Run the standalone React Native reproduction with @rnmapbox/maps 10.2.10, Mapbox 11.16.2, and the New Architecture on the iOS simulator. Compare the iOS behavior with Android for RasterParticleLayer, RasterArraySource, and the supplied wind source. Done means the raster particle layer is visible on iOS without errors while preserving the Android behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, javascript, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100