mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 02:41:09 +00:00
* If a MapLibre source has empty bounds, no tiles will be displayed.
This commit is contained in:
@@ -221,6 +221,13 @@ export class Protocol {
|
||||
}
|
||||
|
||||
const h = await instance.getHeader();
|
||||
|
||||
if (h.minLon >= h.maxLon || h.minLat >= h.maxLat) {
|
||||
console.error(
|
||||
`Bounds of PMTiles archive ${h.minLon},${h.minLat},${h.maxLon},${h.maxLat} are not valid.`
|
||||
);
|
||||
}
|
||||
|
||||
return {
|
||||
data: {
|
||||
tiles: [`${params.url}/{z}/{x}/{y}`],
|
||||
|
||||
Reference in New Issue
Block a user