must be either relativeToGround, relativeToSeaFloor, or absolute. * The point is extruded toward the center of the Earth's sphere. * Enter description here ... * @var boolean */ public $extrude; /** * * Enter description here ... * @param string $latitude * @param string $longitude * @param string $elevation */ public function __construct($latitude, $longitude, $elevation = 0){ $this->tag = 'Point'; $this->latitude = $latitude; $this->longitude = $longitude; $this->elevation = $elevation; } /** * (non-PHPdoc) * @see EGMapKMLNode::toXML() */ public function toXML(){ $this->checkNode('extrude'); /** * coordinate * A single tuple consisting of floating point values for longitude, latitude, and altitude (in that order). * Longitude and latitude values are in degrees * altitude values (optional) are in meters above sea level * Do not include spaces between the three values that describe a coordinate. */ if(!is_null($this->latitude) && !is_null($this->longitude)) $this->addChild(new EGMapKMLNode('coordinates', $this->longitude.','.$this->latitude.','.$this->elevation)); return parent::toXML(); } }