mirror of
https://github.com/klokantech/tileserver-php.git
synced 2025-08-03 13:17:34 +02:00
Utfgrid routing bug fixed
This commit is contained in:
@@ -15,7 +15,7 @@ Router::serve(array(
|
|||||||
'/' => 'Server:getHtml',
|
'/' => 'Server:getHtml',
|
||||||
'/test' => 'Server:getInfo',
|
'/test' => 'Server:getInfo',
|
||||||
'/html' => 'Server:getHtml',
|
'/html' => 'Server:getHtml',
|
||||||
'/:alpha/:number/:number/:number.:alpha.json' => 'Json:getUTFGrid',
|
'/:alpha/:number/:number/:number.grid.json' => 'Json:getUTFGrid',
|
||||||
'/:alpha.json' => 'Json:getJson',
|
'/:alpha.json' => 'Json:getJson',
|
||||||
'/:alpha.jsonp' => 'Json:getJsonp',
|
'/:alpha.jsonp' => 'Json:getJsonp',
|
||||||
'/wmts' => 'Wmts:get',
|
'/wmts' => 'Wmts:get',
|
||||||
@@ -433,7 +433,7 @@ class Server {
|
|||||||
header("Content-Type:text/javascript; charset=utf-8");
|
header("Content-Type:text/javascript; charset=utf-8");
|
||||||
echo $grid;
|
echo $grid;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (PDOException $e) {
|
} catch (PDOException $e) {
|
||||||
header('Content-type: text/plain');
|
header('Content-type: text/plain');
|
||||||
print 'Error querying the database: ' . $e->getMessage();
|
print 'Error querying the database: ' . $e->getMessage();
|
||||||
|
Reference in New Issue
Block a user