Skip to content

Wrong rendering results with background layer with opacity as overlay #2925

Closed

Description

@tmpsantos

If you have something like this in your style:

  "layers": [
    {   
      "id": "raster-none",
      "type": "raster",
      "source": "satellite",
      "paint": {
        "raster-fade-duration": 0
      }   
    },  
    {   
      "id": "background_overlay",
      "type": "background",
      "paint": {
        "background-opacity": 0.5,
        "background-color": "green"
      }   
    }   
  ]

You would expect this:
expected

But you get this:
actual

I wrote a test case for it here:
mapbox/mapbox-gl-test-suite#130

Activity

  1. tmpsantos commented on Aug 1, 2016

    @tmpsantos
    ContributorAuthor

    /cc @danielamitay that first reported the issue.

  2. tmpsantos commented on Aug 1, 2016

    @tmpsantos
    ContributorAuthor

    This native issue adds some more details on the current behavior on JS -> mapbox/mapbox-gl-native#5832

  3. added a commit that references this issue on Nov 3, 2016
    d853f8d
  4. added a commit that references this issue on Nov 3, 2016
    b6a1af9
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions