mirror of
https://github.com/klokantech/tileserver-php.git
synced 2025-08-07 15:16:28 +02:00
Merge pull request #32 from Fil/patch-1
Check which .mbtiles files are readable
This commit is contained in:
@@ -71,13 +71,13 @@ class Server {
|
||||
$mjs = glob('*/metadata.json');
|
||||
$mbts = glob('*.mbtiles');
|
||||
if ($mjs) {
|
||||
foreach ($mjs as $mj) {
|
||||
foreach (array_filter($mjs, 'is_readable') as $mj) {
|
||||
$layer = $this->metadataFromMetadataJson($mj);
|
||||
array_push($this->fileLayer, $layer);
|
||||
}
|
||||
}
|
||||
if ($mbts) {
|
||||
foreach ($mbts as $mbt) {
|
||||
foreach (array_filter($mbts, 'is_readable') as $mbt) {
|
||||
$this->dbLayer[] = $this->metadataFromMbtiles($mbt);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user