I see you have documentation to use the API with MapLibre, is there any support with mapbox?
If so, I have a need to dynamically pull in vector tiles for different time periods. The input could would a be a year and could potentially be hundreds of years. So I would need to dynamically fetch tiles for different years basically.
My current setup uses Mapbox GLJS, vanilla JS, I also use a tileserver to serve vector tiles when needed. Mapbox needs to dynamically add the z,x, and y values. Would this be possible with the API or is there another viable option for my needs?
map.addSource('countries', {
type: 'vector',
tiles: ['http://localhost:3000/data/countries/{z}/{x}/{y}.pbf'],
minzoom: 1,
maxzoom: 5,
});
map.addLayer({
id: 'countriesLayer',
type: 'fill',
source: 'countries',
'source-layer': 'country_bordersgeo',
paint: {
'fill-color': '#888',
'fill-opacity': 0.5,
},
});