Skip to content

Instantly share code, notes, and snippets.

@slibby
Last active April 9, 2021 21:00
Show Gist options
  • Save slibby/5a83233968e027f283864e944cf92384 to your computer and use it in GitHub Desktop.
Save slibby/5a83233968e027f283864e944cf92384 to your computer and use it in GitHub Desktop.
{
layers: [
{
layout: {},
paint: {
"fill-color": "#0000ff",
"fill-outline-color": "#000000"
},
source: "twc",
minzoom: 0,
"source-layer": "source-layer",
type: "fill",
id: "1",
"filter":["==","phenomenon","ICING"]
} ,
{
layout: {},
paint: {
"fill-color": "#00ffff",
"fill-outline-color": "#000000"
},
source: "twc",
minzoom: 0,
"source-layer": "source-layer",
type: "fill",
id: "1",
"filter":["==","phenomenon","VIS"]
}
],
sources: {
twc: {
url:
url,
type: "vector"
}
}
}
{
"currentVersion": 10.81,
"name": "TWC_Events",
"copyrightText": "Sources: Esri, HERE, Garmin, FAO, NOAA, USGS, © OpenStreetMap contributors, and the GIS User Community",
"capabilities": "TilesOnly",
"defaultStyles": "resources/styles",
"tiles": ["https://api.weather.com/v2/vector-api/products/6002-boeing/features?format=mvt&lod={z}&y={y}&x={x}"],
"exportTilesAllowed": true,
"initialExtent": {
"xmin": -2.00375070671618E7,
"ymin": -2.00375070671618E7,
"xmax": 2.00375070671618E7,
"ymax": 2.00375070671618E7,
"spatialReference": {
"wkid": 102100,
"latestWkid": 3857
}
},
"fullExtent": {
"xmin": -2.00375070671618E7,
"ymin": -2.00375070671618E7,
"xmax": 2.00375070671618E7,
"ymax": 2.00375070671618E7,
"spatialReference": {
"wkid": 102100,
"latestWkid": 3857
}
},
"minScale": 0.0,
"maxScale": 0.0,
"tileInfo": {
"rows": 512,
"cols": 512,
"dpi": 96,
"format": "pbf",
"origin": {
"x": -2.0037508342787E7,
"y": 2.0037508342787E7
},
"spatialReference": {
"wkid": 102100,
"latestWkid": 3857
},
"lods": [{
"level": 0,
"resolution": 78271.516964,
"scale": 2.958287637957775E8
}, {
"level": 1,
"resolution": 39135.75848199995,
"scale": 1.479143818978885E8
}, {
"level": 2,
"resolution": 19567.87924100005,
"scale": 7.39571909489445E7
}, {
"level": 3,
"resolution": 9783.93962049995,
"scale": 3.6978595474472E7
}, {
"level": 4,
"resolution": 4891.96981024998,
"scale": 1.8489297737236E7
}, {
"level": 5,
"resolution": 2445.98490512499,
"scale": 9244648.868618
}, {
"level": 6,
"resolution": 1222.992452562495,
"scale": 4622324.434309
}, {
"level": 7,
"resolution": 611.496226281245,
"scale": 2311162.2171545
}, {
"level": 8,
"resolution": 305.74811314069,
"scale": 1155581.1085775
}, {
"level": 9,
"resolution": 152.874056570279,
"scale": 577790.5542885
}, {
"level": 10,
"resolution": 76.4370282852055,
"scale": 288895.2771445
}, {
"level": 11,
"resolution": 38.2185141425366,
"scale": 144447.638572
}, {
"level": 12,
"resolution": 19.1092570712683,
"scale": 72223.819286
}, {
"level": 13,
"resolution": 9.55462853563415,
"scale": 36111.909643
}, {
"level": 14,
"resolution": 4.777314267817075,
"scale": 18055.9548215
}, {
"level": 15,
"resolution": 2.388657133974685,
"scale": 9027.977411
}, {
"level": 16,
"resolution": 1.19432856698734,
"scale": 4513.9887055
}, {
"level": 17,
"resolution": 0.597164283427525,
"scale": 2256.9943525
}, {
"level": 18,
"resolution": 0.2985821417799085,
"scale": 1128.4971765
}, {
"level": 19,
"resolution": 0.1492910708238085,
"scale": 564.248588
}, {
"level": 20,
"resolution": 0.07464553541190416,
"scale": 282.124294
}, {
"level": 21,
"resolution": 0.03732276770595208,
"scale": 141.062147
}, {
"level": 22,
"resolution": 0.01866138385297604,
"scale": 70.5310735
}
]
},
"maxzoom": 22,
"minLOD": 0,
"maxLOD": 16,
"resourceInfo": {
"styleVersion": 8,
"tileCompression": "gzip",
"cacheInfo": {
"storageInfo": {
"packetSize": 128,
"storageFormat": "compactV2"
}
}
},
"maxExportTilesCount": 10000
}
{
"name": "TWC_Data",
"copyrightText": "Sources: The Weather Company",
"tiles": ["https://api.weather.com/v2/vector-api/products/6002-boeing/features?format=mvt&lod={z}&y={y}&x={x}"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment