L'affichage des POIs est dinamique pour les zooms supérieurs à 10
This commit is contained in:
1 parent
642b89517f
commit
5c77ff2c1d
3 files changed
+226
-127
No files matched your search
@@ -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 = [];
|
||||
|
||||
|
||||
Reference in new issue
Block a user