Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Flickering with translucent raster style layer #7760

Closed

Description

@ericrwolfe

If you add a translucent raster layer, tiles are double rendered during tile loading. For example if you add a layer with 50% opacity, there are moments of flickering where the layer renders out at 100% opacity.

translucent raster 2

  1. Add a raster layer with a semi-opaque opacity value (e.g. 50%):
NSURL *rasterURL = [NSURL URLWithString:@"mapbox://mapbox.satellite"];
MGLRasterSource *rasterSource = [[MGLRasterSource alloc] initWithIdentifier:@"my-raster-source" configurationURL:rasterURL tileSize:512];
[self.mapView.style addSource:rasterSource];
    
MGLRasterStyleLayer *rasterLayer = [[MGLRasterStyleLayer alloc] initWithIdentifier:@"my-raster-layer" source:rasterSource];
rasterLayer.rasterOpacity = [MGLStyleValue valueWithRawValue:@0.5];
[self.mapView.style addLayer:rasterLayer];
  1. Pan around in areas where tiles haven't been loaded

Activity

  1. added
    Core
    on Jan 17, 2017
  2. kkaefer commented on Jul 24, 2017

    @kkaefer
    Member

    Fixed by #9468.

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

    Corebugruntime styling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions