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

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

Closed
nicolaskruchten opened this issue Jul 15, 2019 · 1 comment
Closed

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

nicolaskruchten opened this issue Jul 15, 2019 · 1 comment
Assignees
Labels
feature something new
Milestone

Comments

@nicolaskruchten
Copy link
Contributor

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.

@etpinard etpinard added the feature something new label Jul 17, 2019
@etpinard etpinard added this to the v1.49.0 milestone Jul 17, 2019
@archmoj archmoj assigned archmoj and unassigned archmoj Jul 17, 2019
@antoinerg antoinerg self-assigned this Jul 18, 2019
@antoinerg
Copy link
Contributor

Closed by #4068

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

No branches or pull requests

4 participants