Skip to content

How to change layer opacity when use 'mapbox://styles/mapbox/standard'Β #13635

@sipsd-zhangnk

Description

@sipsd-zhangnk

I use the standard style: 'mapbox://styles/mapbox/standard', and this is my config:

const map = new mapboxgl.Map({
      container: 'map',
      // Choose from Mapbox's core styles, or make your own style with Mapbox Studio
      style: 'mapbox://styles/mapbox/standard',
      center: this.center,
      zoom: this.zoom,
      config: {
        basemap: {
          lightPreset: 'night'
        }
      },
      antialias: true // create the gl context with MSAA antialiasing, so custom layers are antialiased
    });

I wang to show pipeline under the background, how can I change the opacity of the background, roads, buildings?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions