diff --git a/tileserver.php b/tileserver.php index 0aa1fe2..0c56fdf 100644 --- a/tileserver.php +++ b/tileserver.php @@ -409,7 +409,7 @@ class Server { echo '
This server distributes maps to desktop, web, and mobile applications.
The mapping data are available as OpenGIS Web Map Tiling Service (OGC WMTS), OSGEO Tile Map Service (TMS), and popular XYZ urls described with TileJSON metadata.
'; @@ -517,10 +517,10 @@ class Json extends Server { foreach ($maps as $map) { $output = $output . json_encode($this->metadataTileJson($map)) . ','; } - if(strlen($output) > 1){ + if (strlen($output) > 1) { $output = substr_replace($output, ']', -1); - }else{ - $output = $output.']'; + } else { + $output = $output . ']'; } } else { foreach ($maps as $map) { @@ -1405,7 +1405,7 @@ class Router { die; //$handler_instance = new Server; //$handler_instance->getHtml(); + } } - } }