Project

General

Profile

Revision 94abb8ac

Added by Jocelyn Dealande almost 8 years ago

panorama.php

again, a lat/lon inverted

View differences:

panorama.php
105 105
   if ($pt->has_params()) {
106 106
     foreach (RefPoint::near_points($pt, MAX_SEEING_DISTANCE) as $ref) {
107 107
       $extra_names[] = $ref->name;
108
       list($dist, $cap, $ele) = $pt->coordsToCap($ref->lon, $ref->lat,
108
       list($dist, $cap, $ele) = $pt->coordsToCap($ref->lat, $ref->lon,
109 109
                                                  $ref->ele);
110 110
       $ref_names[$ref->name] = array($dist, $cap, $ele);
111 111
       printf('point_list[%d] = new Array("%s", %03lf, %03lf, %03lf, "");'."\n", $ipt++, $ref->name, $dist, $cap, $ele);

Also available in: Unified diff