This adds support for using cached styles that are stale. They're treated like changing styles; when the refreshed style changed compared to the one we've already had, we're swapping out the entire style, which might cause a slight flicker.
26 lines
431 B
JSON
26 lines
431 B
JSON
{
|
|
"version": 8,
|
|
"name": "Water",
|
|
"sources": {
|
|
"mapbox": {
|
|
"type": "vector",
|
|
"url": "asset://test/fixtures/stale/streets.json"
|
|
}
|
|
},
|
|
"layers": [{
|
|
"id": "background",
|
|
"type": "background",
|
|
"paint": {
|
|
"background-color": "red"
|
|
}
|
|
}, {
|
|
"id": "water",
|
|
"type": "fill",
|
|
"source": "mapbox",
|
|
"source-layer": "water",
|
|
"paint": {
|
|
"fill-color": "blue"
|
|
}
|
|
}]
|
|
}
|