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) {
|
foreach ($this->get($this->kml, 'Placemark') as $placemark) {
|
||||||
if ($this->has($placemark, 'Point')) {
|
if ($this->has($placemark, 'Point')) {
|
||||||
|
$latlngs = $this->getCoords($placemark);
|
||||||
$this->waypoints[] = array(
|
$this->waypoints[] = array(
|
||||||
'name' => trim($this->getValue($placemark, 'name')),
|
'name' => trim($this->getValue($placemark, 'name')),
|
||||||
'description' => trim($this->getValue($placemark, 'description')),
|
'description' => trim($this->getValue($placemark, 'description')),
|
||||||
'when' => date('c', strtotime($this->getValue($placemark, 'when'))),
|
'when' => date('c', strtotime($this->getValue($placemark, 'when'))),
|
||||||
'latlng' => $this->getCoords($placemark)[0],
|
'latlng' => $latlngs[0],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue