|
1 | 1 | { |
2 | 2 | "buttons": [ |
3 | | - { "id": "gravel road", "class": "layerIds", "group": "style", "layerIds": { |
4 | | - "road-unpaved": [{"propertyType": "paint", "property": "line-width", "value": {"base": 1.1, "stops": [[5, 0.75], [20, 5]]}}], |
5 | | - "cycleway-unpaved": [{"propertyType": "layout", "property": "visibility", "value": "none"}], |
6 | | - "cycleway-unknown": [{"propertyType": "layout", "property": "visibility", "value": "none"}], |
7 | | - "cycleway-paved": [{"propertyType": "layout", "property": "visibility", "value": "none"}], |
8 | | - "cyclefriendly-paved": [{"propertyType": "layout", "property": "visibility", "value": "none"}] |
9 | | - }}, |
10 | | - { "id": "dirty", "class": "layerIds", "group": "style", "layerIds": { |
11 | | - "road-unpaved": [{"propertyType": "layout", "property": "visibility", "value": "none"}], |
12 | | - "cycleway-paved": [{"propertyType": "layout", "property": "visibility", "value": "none"}], |
13 | | - "cyclefriendly-paved": [{"propertyType": "layout", "property": "visibility", "value": "none"}] |
14 | | - }}, |
15 | | - { "id": "paved", "class": "layerIds", "group": "style", "layerIds": { |
16 | | - "road-unpaved": [{"propertyType": "layout", "property": "visibility", "value": "none"}], |
17 | | - "cycleway-unpaved": [{"propertyType": "layout", "property": "visibility", "value": "none"}], |
18 | | - "cycleway-unknown": [{"propertyType": "layout", "property": "visibility", "value": "none"}] |
19 | | - }}, |
20 | 3 | { |
21 | | - "id": "satellite", |
22 | | - "class": "layer", |
23 | | - "name": "sat", |
24 | | - "active": false, |
25 | | - "type": "raster", |
26 | | - "source": {"type": "raster", "tiles": ["https://api.mapbox.com/styles/v1/mapbox/satellite-v9/tiles/{z}/{x}/{y}?access_token=pk.eyJ1IjoiY3ljbGVtYXB1cyIsImEiOiJjanNhbHRlaGMwMGp2NDNqeG80Mzk2cmExIn0.0OBPtvf3KANeaA6QOCk1yw"]}, |
27 | | - "beforeId": "satellite-anchor" |
28 | | - }, |
29 | | - { "id": "weather", "class": "directory", "source": [ |
30 | | - { |
31 | | - "id": "past-rain-1d", |
32 | | - "class": "rain", |
33 | | - "name": "past rain 1d", |
34 | | - "active": false, |
35 | | - "type": "raster", |
36 | | - "paint": {"raster-opacity": 0.5}, |
37 | | - "beforeId": "rain-anchor", |
38 | | - "group": "weather", |
39 | | - "source": { |
| 4 | + "id": "expand", |
| 5 | + "class": "directory", |
| 6 | + "active": true, |
| 7 | + "name": "◉", |
| 8 | + "source": [ |
| 9 | + { "id": "gravel-road", "class": "layerIds", "active": false, "layerIds": { |
| 10 | + "road-unpaved": [{"propertyType": "layout", "property": "visibility", "value": "visible"}] |
| 11 | + }}, |
| 12 | + { "id": "trails", "class": "layerIds", "active": true, "layerIds": { |
| 13 | + "cycleway-unpaved": [{"propertyType": "layout", "property": "visibility", "value": "visible"}], |
| 14 | + "cycleway-unknown": [{"propertyType": "layout", "property": "visibility", "value": "visible"}] |
| 15 | + }}, |
| 16 | + { "id": "paved", "class": "layerIds", "active": true, "layerIds": { |
| 17 | + "cycleway-paved": [{"propertyType": "layout", "property": "visibility", "value": "visible"}], |
| 18 | + "cyclefriendly-paved": [{"propertyType": "layout", "property": "visibility", "value": "visible"}] |
| 19 | + }}, |
| 20 | + { |
| 21 | + "id": "satellite", |
| 22 | + "class": "layer", |
| 23 | + "name": "sat", |
40 | 24 | "type": "raster", |
41 | | - "tileSize": 2048, |
42 | | - "tiles" : [ |
43 | | - "https://mapservices.weather.noaa.gov/raster/rest/services/obs/rfc_qpe/MapServer/export?bbox={bbox-epsg-3857}&size=512,512&dpi=96&format=png8&transparent=true&bboxSR=3857&imageSR=3857&layers=show:28&f=image" |
44 | | - ] |
45 | | - } |
46 | | - }, |
47 | | - { |
48 | | - "id": "past-rain-3d", |
49 | | - "class": "rain", |
50 | | - "name": "past rain 3d", |
51 | | - "active": false, |
52 | | - "type": "raster", |
53 | | - "paint": {"raster-opacity": 0.5}, |
54 | | - "beforeId": "rain-anchor", |
55 | | - "group": "weather", |
56 | | - "source": { |
57 | | - "type": "raster", |
58 | | - "tileSize": 2048, |
59 | | - "tiles" : [ |
60 | | - "https://mapservices.weather.noaa.gov/raster/rest/services/obs/rfc_qpe/MapServer/export?bbox={bbox-epsg-3857}&size=512,512&dpi=96&format=png8&transparent=true&bboxSR=3857&imageSR=3857&layers=show:40&f=image" |
61 | | - ] |
62 | | - } |
63 | | - }, |
64 | | - { |
65 | | - "id": "past-rain-5d", |
66 | | - "class": "rain", |
67 | | - "name": "past rain 5d", |
68 | | - "active": false, |
69 | | - "type": "raster", |
70 | | - "paint": {"raster-opacity": 0.5}, |
71 | | - "beforeId": "rain-anchor", |
72 | | - "group": "weather", |
73 | | - "source": { |
74 | | - "type": "raster", |
75 | | - "tileSize": 2048, |
76 | | - "tiles" : [ |
77 | | - "https://mapservices.weather.noaa.gov/raster/rest/services/obs/rfc_qpe/MapServer/export?bbox={bbox-epsg-3857}&size=512,512&dpi=96&format=png8&transparent=true&bboxSR=3857&imageSR=3857&layers=show:48&f=image" |
78 | | - ] |
79 | | - } |
80 | | - } |
81 | | - ]}, |
82 | | - { "id": "more", "name": "☰", "class": "directory", "source": [ |
83 | | - { "id": "reset", "class": "reset" }, |
84 | | - { "id": "heat" }, |
85 | | - { "id": "osm" }, |
86 | | - { "id": "g" }, |
87 | | - { "id": "about-menu", "name": "about", "class": "about" } |
88 | | - ]} |
| 25 | + "source": {"type": "raster", "tiles": ["https://api.mapbox.com/styles/v1/mapbox/satellite-v9/tiles/{z}/{x}/{y}?access_token=pk.eyJ1IjoiY3ljbGVtYXB1cyIsImEiOiJjanNhbHRlaGMwMGp2NDNqeG80Mzk2cmExIn0.0OBPtvf3KANeaA6QOCk1yw"]}, |
| 26 | + "beforeId": "satellite-anchor" |
| 27 | + }, |
| 28 | + { "id": "weather", "class": "directory", "source": [ |
| 29 | + { |
| 30 | + "id": "past-rain-1d", |
| 31 | + "class": "rain", |
| 32 | + "type": "raster", |
| 33 | + "paint": {"raster-opacity": 0.5}, |
| 34 | + "beforeId": "rain-anchor", |
| 35 | + "group": "weather", |
| 36 | + "source": { |
| 37 | + "type": "raster", |
| 38 | + "tileSize": 2048, |
| 39 | + "tiles" : [ |
| 40 | + "https://mapservices.weather.noaa.gov/raster/rest/services/obs/rfc_qpe/MapServer/export?bbox={bbox-epsg-3857}&size=512,512&dpi=96&format=png8&transparent=true&bboxSR=3857&imageSR=3857&layers=show:28&f=image" |
| 41 | + ] |
| 42 | + } |
| 43 | + }, |
| 44 | + { |
| 45 | + "id": "past-rain-3d", |
| 46 | + "class": "rain", |
| 47 | + "type": "raster", |
| 48 | + "paint": {"raster-opacity": 0.5}, |
| 49 | + "beforeId": "rain-anchor", |
| 50 | + "group": "weather", |
| 51 | + "source": { |
| 52 | + "type": "raster", |
| 53 | + "tileSize": 2048, |
| 54 | + "tiles" : [ |
| 55 | + "https://mapservices.weather.noaa.gov/raster/rest/services/obs/rfc_qpe/MapServer/export?bbox={bbox-epsg-3857}&size=512,512&dpi=96&format=png8&transparent=true&bboxSR=3857&imageSR=3857&layers=show:40&f=image" |
| 56 | + ] |
| 57 | + } |
| 58 | + }, |
| 59 | + { |
| 60 | + "id": "past-rain-5d", |
| 61 | + "class": "rain", |
| 62 | + "type": "raster", |
| 63 | + "paint": {"raster-opacity": 0.5}, |
| 64 | + "beforeId": "rain-anchor", |
| 65 | + "group": "weather", |
| 66 | + "source": { |
| 67 | + "type": "raster", |
| 68 | + "tileSize": 2048, |
| 69 | + "tiles" : [ |
| 70 | + "https://mapservices.weather.noaa.gov/raster/rest/services/obs/rfc_qpe/MapServer/export?bbox={bbox-epsg-3857}&size=512,512&dpi=96&format=png8&transparent=true&bboxSR=3857&imageSR=3857&layers=show:48&f=image" |
| 71 | + ] |
| 72 | + } |
| 73 | + } |
| 74 | + ]}, |
| 75 | + { "id": "more", "name": "☰", "class": "directory", "source": [ |
| 76 | + { "id": "reset", "class": "reset" }, |
| 77 | + { "id": "heat" }, |
| 78 | + { "id": "osm" }, |
| 79 | + { "id": "g" }, |
| 80 | + { "id": "about-menu", "name": "about", "class": "about" } |
| 81 | + ]} |
| 82 | + ] |
| 83 | + } |
89 | 84 | ] |
90 | 85 | } |
0 commit comments