Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Raster layers glitch out randomly on map zoom, pan or even map idle #3748

Open
heyyfurqan opened this issue Jan 21, 2025 · 0 comments
Labels
bug 🪲 Something isn't working

Comments

@heyyfurqan
Copy link

Mapbox Implementation

Mapbox

Mapbox Version

11.9.0

React Native Version

0.76.5

Platform

Android

@rnmapbox/maps version

10.1.33

Standalone component to reproduce

import React from 'react';
import {
  MapView,
  Camera,
  MapboxGL,
} from '@rnmapbox/maps';

class BugReportExample extends React.Component {
  render() {
    return (
      <MapView style={{ flex: 1 }}>
        <MapboxGL.RasterSource
          id="wms-source"
          tileUrlTemplates={[
            'https://spatial-gis.information.qld.gov.au/arcgis/rest/services/GeoscientificInformation/GeologyDetailed/MapServer/export?bbox={bbox-epsg-3857}&bboxSR=EPSG%3A3857&layers=15&size=256,256&format=png&transparent=true&f=image',
          ]}
          tileSize={256}
        >
          <MapboxGL.RasterLayer
            id="wms-layer"
            sourceID="wms-source"
            style={{
              rasterOpacity: 0.5,
            }}
          />
        </MapboxGL.RasterSource>
        <Camera centerCoordinate={[-74.00597, 40.71427]} zoomLevel={14} />
      </MapView>
    );
  }
}

export default BugReportExample;

Observed behavior and steps to reproduce

  • When I add a raster layer to my map, the layer loads but the layer behaves weirdly, randomly loads and then the tiles disappear and appear again randomly, and the tiles loading is also random. Take a look at the attached video.
  • The issue happens when the map is idle (not interacted with), zoomed in or being panned.
clideo_editor_d38b49d206bc4d1185cdfa2a51785951.mp4

Expected behavior

  • The layer should load gradually like the other layers, and once loaded, the tiles shouldn't just randomly disappear.

Notes / preliminary analysis

  • I am loading geology layers for all states of Australia. The rest of the states load fine, only the Queensland causes issue. The same layer loads fine on web too. Here are the rest of the tile urls for reference:
  • South Australia
  • New South Wales

Additional links and references

No response

@heyyfurqan heyyfurqan added the bug 🪲 Something isn't working label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant