mapbox / mapbox/mapbox-gl-leaflet

Adding multiple style layers

Open
#111 1 comment 2 reactions 1 assignee View on GitHub

@w8r is already working on this.

Since Dec 5, 2019.

Dominant language
JavaScript
Stars
546
Forks
148
PR merge metrics
No merged PRs in 30d

Description

Hello,

We would like to be able to add two style layers to the map. An imagery style that sits below our leaflet data, and a labels style that sits on top of the imagery and data. We have not succeeded at getting this to work. Here is a simple example of what we tried:

https://jsfiddle.net/4j9ghubc/

This only shows the labels. We would like to see the imagery behind the transparent parts of the labels.

Please let us know if you need more example or clarification.

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.