Révision 1aebc2ec
Ajouté par Jocelyn Delande il y a environ 11 ans
panorama.php | ||
---|---|---|
67 | 67 |
foreach($dir_list->get_sites() as $opt) { |
68 | 68 |
$prm = $opt->get_params(); |
69 | 69 |
$oname = $opt->get_name(); |
70 |
if ($oname != $name && isset($prm['latitude']) && isset($prm['longitude']) && isset($prm['altitude']) && isset($prm['titre'])) {
|
|
70 |
if ($oname != $name && $opt->has_params()) {
|
|
71 | 71 |
list($dist, $cap, $ele) = $pt->coordsToCap($prm['latitude'], $prm['longitude'], $prm['altitude']); |
72 | 72 |
$lnk = sprintf("%s?dir=%s&panorama=%s&to_cap=%.3f&to_ele=%.3f", $scrname, $dir, $oname, $cap + 180, -$ele); |
73 | 73 |
printf('point_list[%d] = new Array("%s", %03lf, %03lf, %03lf, "%s");'."\n", $ipt++, $prm['titre'], $dist, $cap, $ele, $lnk); |
Formats disponibles : Unified diff
has_params and get_all for site_point