Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Show / Hide a layer programmatically #3169

Closed
franckt opened this issue Dec 2, 2015 · 1 comment
Closed

Show / Hide a layer programmatically #3169

franckt opened this issue Dec 2, 2015 · 1 comment

Comments

@franckt
Copy link

franckt commented Dec 2, 2015

Hi,
Is it possible to show or hide a layer at runtime identified by an id ?

for example this style by "landcover_crop"
{
"id": "landcover_crop",
"type": "fill",
"source": "composite",
"source-layer": "landcover",
"filter": [
"==",
"class",
"crop"
],
"maxzoom": 14,
"layout": {
"visibility": "visible"
},

@1ec5
Copy link
Contributor

1ec5 commented Dec 2, 2015

Not yet, but we’re working on it for #837.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants