sample = ({
source: {
type:"vector",
url:"pmtiles://https://data.source.coop/cholmes/google-open-buildings/google-open-buildings.pmtiles",
attribution: '© <a href="https://beta.source.coop/cholmes/google-open-buildings">Google Open Buildings</a>'
},
layers: [
{
id:"fill",
type:"fill",
source:"sample",
"source-layer":"buildings",
paint:{
"fill-color":"#b4c7e0"
}
},
{
id:"stroke",
type:"line",
source:"sample",
"source-layer":"buildings",
paint:{
"line-color":"#6d87a8",
"line-width": [
"interpolate",
["exponential", 2],
["zoom"],
0, 1.3,
4, 1,
13, 0.5
]
}
}
],
popup_layer: 'fill'
})