Révision def96176
Ajouté par Jocelyn Dealande il y a presque 10 ans
panorama.php | ||
---|---|---|
87 | 87 |
$dir_list = new sites_dir($dir); |
88 | 88 |
|
89 | 89 |
$ipt = 0; |
90 |
foreach(site_point::near_points($pt, MAX_SEEING_DISTANCE) as $opt) { |
|
91 |
$prm = $opt->get_params(); |
|
92 |
$oname = $opt->get_name(); |
|
93 |
if (($oname != $name) && $opt->has_params()) { |
|
94 |
list($dist, $cap, $ele) = $pt->coordsToCap($prm['latitude'], $prm['longitude'], $prm['altitude']); |
|
95 |
// Looks back at the point from which we come. |
|
96 |
$lnk = $opt->get_url($cap + 180, -$ele); |
|
97 |
printf('point_list[%d] = new Array("%s", %03lf, %03lf, %03lf, "%s");'."\n", $ipt++, $prm['titre'], $dist, $cap, $ele, $lnk); |
|
90 |
if ($pt->has_params()) { |
|
91 |
foreach(site_point::near_points($pt, MAX_SEEING_DISTANCE) as $opt) { |
|
92 |
$prm = $opt->get_params(); |
|
93 |
$oname = $opt->get_name(); |
|
94 |
if (($oname != $name) && $opt->has_params()) { |
|
95 |
list($dist, $cap, $ele) = $pt->coordsToCap($prm['latitude'], $prm['longitude'], $prm['altitude']); |
|
96 |
// Looks back at the point from which we come. |
|
97 |
$lnk = $opt->get_url($cap + 180, -$ele); |
|
98 |
printf('point_list[%d] = new Array("%s", %03lf, %03lf, %03lf, "%s");'."\n", $ipt++, $prm['titre'], $dist, $cap, $ele, $lnk); |
|
99 |
} |
|
98 | 100 |
} |
99 | 101 |
} |
100 | 102 |
|
101 | 103 |
$extra_names = array(); |
102 | 104 |
$ref_names = array(); |
103 |
foreach (RefPoint::near_points($pt, MAX_SEEING_DISTANCE) as $ref) { |
|
104 |
$extra_names[] = $ref->name; |
|
105 |
list($dist, $cap, $ele) = $pt->coordsToCap($ref->lon, $ref->lat, |
|
106 |
$ref->ele); |
|
107 |
$ref_names[$name] = array($dist, $cap, $ele); |
|
108 |
printf('point_list[%d] = new Array("%s", %03lf, %03lf, %03lf, "");'."\n", $ipt++, $ref->name, $dist, $cap, $ele); |
|
105 |
if ($pt->has_params()) { |
|
106 |
foreach (RefPoint::near_points($pt, MAX_SEEING_DISTANCE) as $ref) { |
|
107 |
$extra_names[] = $ref->name; |
|
108 |
list($dist, $cap, $ele) = $pt->coordsToCap($ref->lon, $ref->lat, |
|
109 |
$ref->ele); |
|
110 |
$ref_names[$name] = array($dist, $cap, $ele); |
|
111 |
printf('point_list[%d] = new Array("%s", %03lf, %03lf, %03lf, "");'."\n", $ipt++, $ref->name, $dist, $cap, $ele); |
|
109 | 112 |
} |
110 |
|
|
113 |
} |
|
111 | 114 |
if (isset($params['reference'])) { |
112 | 115 |
echo "ref_points = new Array();\n"; |
113 | 116 |
foreach ($params['reference'] as $nm => $val) { |
Formats disponibles : Unified diff
unconfigured panoramas are viewable again