Skip to content

new simple shortcut for layout.mapbox.style: white-bg #4051

Description

@nicolaskruchten

I propose another new shortcut value for layout.mapbox.style called "white-bg" with the following definition:

{
        "id": "white-bg",
        "version": 8,
        "sources": {},
        "layers": [
          {
            "id": "white-bg",
            "type": "background",
            "paint": {"background-color": "#FFFFFF"}
          }
        ]
      }

This would be useful in conjunction with #4050 when a user wants a very simple way to provide a layer to go under their data. They would provide layout.mapbox.style: "white-bg" and then some data and then something in layout.mapbox.layers with below: traces. If their layer is fully opaque (i.e. some raster tile-server) then the white background won't be visible, but it also won't make any API calls to any server.

Activity

  1. added this to the v1.49.0 milestone on Jul 17, 2019
  2. assigned and unassigned on Jul 17, 2019
  3. self-assigned this
    on Jul 18, 2019
  4. antoinerg commented on Jul 22, 2019

    @antoinerg
    Contributor

    Closed by #4068

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions