Ejemplo n.º 1
0
 function render($doc)
 {
     $X = parent::render($doc);
     if (isset($this->altitude)) {
         $X->appendChild(XML_create_text_element($doc, 'altitude', $this->altitude));
     }
     if (isset($this->altitudeMode)) {
         $X->appendChild(XML_create_text_element($doc, 'altitudeMode', $this->altitudeMode));
     }
     $X->appendChild($this->LatLonBox->render($doc));
     return $X;
 }
Ejemplo n.º 2
0
 function render($doc)
 {
     $X = parent::render($doc);
     if (isset($this->overlayXY)) {
         $X->appendChild(XML_create_text_element($doc, 'overlayXY', null, $this->overlayXY));
     }
     if (isset($this->screenXY)) {
         $X->appendChild(XML_create_text_element($doc, 'screenXY', null, $this->screenXY));
     }
     if (isset($this->rotationXY)) {
         $X->appendChild(XML_create_text_element($doc, 'rotationXY', null, $this->rotationXY));
     }
     if (isset($this->size)) {
         $X->appendChild(XML_create_text_element($doc, 'size', null, $this->size));
     }
     if (isset($this->rotation)) {
         $X->appendChild(XML_create_text_element($doc, 'rotation', $this->rotation));
     }
     return $X;
 }