mirror of
https://github.com/klokantech/tileserver-php.git
synced 2025-08-07 15:16:28 +02:00
Bad links in the test were fixed.
This commit is contained in:
@@ -374,14 +374,15 @@ class Server {
|
|||||||
* Returns server info
|
* Returns server info
|
||||||
*/
|
*/
|
||||||
public function getInfo() {
|
public function getInfo() {
|
||||||
|
// echo $this->config['baseUrls'][0];die;
|
||||||
$this->setDatasets();
|
$this->setDatasets();
|
||||||
$maps = array_merge($this->fileLayer, $this->dbLayer);
|
$maps = array_merge($this->fileLayer, $this->dbLayer);
|
||||||
header('Content-Type: text/html;charset=UTF-8');
|
header('Content-Type: text/html;charset=UTF-8');
|
||||||
echo '<!DOCTYPE html><html><head><meta charset="UTF-8"><title>' . $this->config['serverTitle'] . '</title></head><body>';
|
echo '<!DOCTYPE html><html><head><meta charset="UTF-8"><title>' . $this->config['serverTitle'] . '</title></head><body>';
|
||||||
echo '<h1>' . $this->config['serverTitle'] . '</h1>';
|
echo '<h1>' . $this->config['serverTitle'] . '</h1>';
|
||||||
echo 'TileJSON service: <a href="' . $this->config['baseUrls'][0] . '/index.json">' . $this->config['baseUrls'][0] . '/index.json</a><br>';
|
echo 'TileJSON service: <a href="//' . $this->config['baseUrls'][0] . '/index.json">' . $this->config['baseUrls'][0] . '/index.json</a><br>';
|
||||||
echo 'WMTS service: <a href="' . $this->config['baseUrls'][0] . '/wmts">' . $this->config['baseUrls'][0] . '/wmts</a><br>';
|
echo 'WMTS service: <a href="//' . $this->config['baseUrls'][0] . '/wmts">' . $this->config['baseUrls'][0] . '/wmts</a><br>';
|
||||||
echo 'TMS service: <a href="' . $this->config['baseUrls'][0] . '/tms">' . $this->config['baseUrls'][0] . '/tms</a>';
|
echo 'TMS service: <a href="//' . $this->config['baseUrls'][0] . '/tms">' . $this->config['baseUrls'][0] . '/tms</a>';
|
||||||
foreach ($maps as $map) {
|
foreach ($maps as $map) {
|
||||||
$extend = '[';
|
$extend = '[';
|
||||||
foreach ($map['bounds'] as $ext) {
|
foreach ($map['bounds'] as $ext) {
|
||||||
@@ -393,7 +394,7 @@ class Server {
|
|||||||
} else {
|
} else {
|
||||||
echo '<p>Available file tileset: ' . $map['basename'] . '<br>';
|
echo '<p>Available file tileset: ' . $map['basename'] . '<br>';
|
||||||
}
|
}
|
||||||
echo 'Metadata: <a href="' . $this->config['baseUrls'][0] . '/' . $map['basename'] . '.json">'
|
echo 'Metadata: <a href="//' . $this->config['baseUrls'][0] . '/' . $map['basename'] . '.json">'
|
||||||
. $this->config['baseUrls'][0] . '/' . $map['basename'] . '.json</a><br>';
|
. $this->config['baseUrls'][0] . '/' . $map['basename'] . '.json</a><br>';
|
||||||
echo 'Bounds: ' . $extend . '</p>';
|
echo 'Bounds: ' . $extend . '</p>';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user