Révision 812f173f
Ajouté par Jocelyn Delande il y a presque 11 ans
ajax/all_points.php | ||
---|---|---|
24 | 24 |
} |
25 | 25 |
|
26 | 26 |
|
27 |
function get_site_points() { |
|
28 |
$dir = "../tiles";//FIXME |
|
29 |
return (new sites_dir($dir))->get_sites(); |
|
30 |
} |
|
31 |
|
|
32 |
|
|
33 | 27 |
function site_point_to_geoJSONFeature($sp) { |
34 | 28 |
$prm = $sp->get_params(); |
35 | 29 |
$name = $sp->get_name(); |
... | ... | |
60 | 54 |
} |
61 | 55 |
|
62 | 56 |
|
63 |
foreach(get_site_points() as $site_point) {
|
|
57 |
foreach(site_point::get_all() as $site_point) {
|
|
64 | 58 |
$json['features'][] = site_point_to_geoJSONFeature($site_point); |
65 | 59 |
} |
66 | 60 |
|
Formats disponibles : Unified diff
make use of constants