L'affichage des POIs est dinamique pour les zooms supérieurs à 10

This commit is contained in:
leosw committed 2026-10-17 12:09:17 +02:00
1 parent 642b89517f
commit 5c77ff2c1d
3 files changed
+226 -127

No files matched your search

+12 -2
View File
@@ -113,12 +113,22 @@ switch ($controller->splitted_url[1]) {
}
break;
case "api_list":
case "api_bbox":
// API JSON pour la liste des POIs (carte).
header("Content-Type: application/json; charset=utf-8");
$north = (float)$_GET['north'];
$south = (float)$_GET['south'];
$east = (float)$_GET['east'];
$west = (float)$_GET['west'];
$pois = new Kabano\Pois();
$pois->listPois($user->rankIsHigher("premium") ? 1 : 0);
$pois->listPoisBBOX(
$north,
$south,
$east,
$west,
$user->rankIsHigher("premium") ? 1 : 0);
$out = [];