mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +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();
|
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 {
|
return {
|
||||||
data: {
|
data: {
|
||||||
tiles: [`${params.url}/{z}/{x}/{y}`],
|
tiles: [`${params.url}/{z}/{x}/{y}`],
|
||||||
|
|||||||
Reference in New Issue
Block a user