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

CustomSource tiles transition/fade duration issue #12630

Open
SergeiMelman opened this issue Mar 28, 2023 · 1 comment
Open

CustomSource tiles transition/fade duration issue #12630

SergeiMelman opened this issue Mar 28, 2023 · 1 comment
Labels

Comments

@SergeiMelman
Copy link

SergeiMelman commented Mar 28, 2023

mapbox-gl-js version:
affected since 2.11, 2.12, 2.13 (2.10 doesn't have this behavior)
browser:
Chrome, FF, Android Chrome,

Steps to Trigger Behavior

	const customSource = {
				type: 'custom',
				dataType: 'raster',
				id: 'customSource',
				loadTile: async () => new ImageData(1, 1),
			};
	map.addSource(customSource.id, customSource);
	map.addLayer({ id: 'rasterLayer', type: 'raster', source: customSource.id, paint: { 'raster-fade-duration': 0 } });
  1. Create minimal Custom Source Demo
  2. Add basic rasterLayer with prepared custom Source with paint: { 'raster-fade-duration': 0 } . Any small values of 'raster-fade-duration' cause the unwanted effect. In my experiments values > 100 worked as expected.
  3. Zoom in and out. Tiles from deeper levels remain.
  4. Very big values paint: { 'raster-fade-duration': 5000 } give similar effect, but in this case map panning removes unwanted tiles.

Link to Demonstration

https://metoceanapi.github.io/wxtiles-mbox/bug4.html

Expected Behavior

No tiles from deeper levels remain with paint: { 'raster-fade-duration': 0 }
As in MapBox v2.10

@stepankuzmin
Copy link
Contributor

Hi @SergeiMelman,

Thanks for creating an issue. This is caused by #12241

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants