rnmapbox / rnmapbox/maps

[Bug]: Raster Particle Layer not visible on iOS

Open
#4,123 2 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug 🪲
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.