1
0
mirror of https://github.com/klokantech/tileserver-php.git synced 2025-08-04 21:58:18 +02:00

Enabled as default html page with tileserver-js

This commit is contained in:
Dalibor Janák
2014-04-11 11:08:04 +02:00
parent 296a752e28
commit 212bc74fed

View File

@@ -7,7 +7,7 @@
*/ */
Router::serve(array( Router::serve(array(
'/' => 'Server:getInfo', '/' => 'Server:getHtml',
'/test' => 'Server:getInfo', '/test' => 'Server:getInfo',
'/html' => 'Server:getHtml', '/html' => 'Server:getHtml',
'/:string.json' => 'Json:getJson', '/:string.json' => 'Json:getJson',
@@ -303,6 +303,9 @@ class Server {
} }
} }
/**
* Returns clean tile
*/
public function getCleanTile() { public function getCleanTile() {
$png = imagecreatetruecolor(256, 256); $png = imagecreatetruecolor(256, 256);
imagesavealpha($png, true); imagesavealpha($png, true);
@@ -1354,8 +1357,9 @@ class Router {
$handler_instance = $discovered_handler(); $handler_instance = $discovered_handler();
} }
} else { } else {
//default page
$handler_instance = new Server; $handler_instance = new Server;
$handler_instance->getInfo(); $handler_instance->getHtml();
} }
} }