Pemière version des tuiles pbf de cabanes à faible zoom
This commit is contained in:
1 parent
5c77ff2c1d
commit
9c68959083
5 files changed
+418
-295
No files matched your search
@@ -146,6 +146,18 @@ switch ($controller->splitted_url[1]) {
|
||||
echo json_encode($out, JSON_UNESCAPED_UNICODE);
|
||||
break;
|
||||
|
||||
case "tile":
|
||||
$z = intval($controller->splitted_url[2]);
|
||||
$x = intval($controller->splitted_url[3]);
|
||||
$y = intval(str_replace(".pbf","",$controller->splitted_url[4]));
|
||||
|
||||
$pois = new Kabano\Pois();
|
||||
|
||||
header("Content-Type: application/x-protobuf");
|
||||
|
||||
echo $pois->getVectorTile($z,$x,$y);
|
||||
break;
|
||||
|
||||
default:
|
||||
// Affichage / édition / suppression d’un POI
|
||||
if ($poi->checkPermalink($controller->splitted_url[1], $user->rankIsHigher("premium"))) {
|
||||
|
||||
Reference in new issue
Block a user