HOT FIX
This commit is contained in:
parent
d3d638831f
commit
d599374442
|
|
@ -17,11 +17,12 @@ class Kml
|
|||
|
||||
foreach ($this->get($this->kml, 'Placemark') as $placemark) {
|
||||
if ($this->has($placemark, 'Point')) {
|
||||
$latlngs = $this->getCoords($placemark);
|
||||
$this->waypoints[] = array(
|
||||
'name' => trim($this->getValue($placemark, 'name')),
|
||||
'description' => trim($this->getValue($placemark, 'description')),
|
||||
'when' => date('c', strtotime($this->getValue($placemark, 'when'))),
|
||||
'latlng' => $this->getCoords($placemark)[0],
|
||||
'latlng' => $latlngs[0],
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue