I want to add a tile layer over my map in Mapbox. The tiles are hosted local with a php tileserver.
My previous attempt looks like this:
map.addLayer({
'id': 'tiles',
'type': 'fill',
'Source': {
'type': 'vector',
'tiles': ['http://localhost/tileserver-php-master/{z}/{x}/{y}.pbf'],
},
'paint': {
'fill-color': 'rgb(53, 175, 109)',
'fill-outline-color': 'rgb(53, 175, 109)'
}
});
The tiles are individual polygons that should be placed over the map. The map is visible, but not the individual tiles.
A layer as geojson is not an option, since the file size is too big.