Skip to content

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

Open

Description

@heyyfurqan

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

Activity

  1. added
    bug 🪲
    on Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🪲

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions