コード例 #1
0
ファイル: kml_Location.php プロジェクト: vickynu2003/php-kml
 function kml_Location($longitude = null, $latitude = null, $altitude = null)
 {
     parent::kml_Geometry();
     if ($longitude !== null) {
         $this->set_longitude($longitude);
     }
     if ($latitude !== null) {
         $this->set_latitude($latitude);
     }
     if ($altitude !== null) {
         $this->set_altitude($altitude);
     }
 }
コード例 #2
0
 function kml_Orientation($heading = null, $tilt = null, $roll = null)
 {
     parent::kml_Geometry();
     if ($heading !== null) {
         $this->set_heading($heading);
     }
     if ($tilt !== null) {
         $this->set_tilt($tilt);
     }
     if ($roll !== null) {
         $this->set_roll($roll);
     }
 }