Skip to content

Commit

Permalink
Hotfix for KML files a geo data source
Browse files Browse the repository at this point in the history
  • Loading branch information
coreation committed Aug 26, 2015
1 parent 082f381 commit 5c759ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Tdt/Core/Formatters/KMLFormatter.php
Expand Up @@ -147,6 +147,11 @@ private static function printArray($val, $placemarks)
$name = self::xmlgetelement($array);
$extendeddata = self::getExtendedDataElement($array);
} elseif ($coordskey) {
if (is_array($array[$coordskey])) {
if(!empty($array[$coordskey]['@text'])) {
$array[$coordskey] = $array[$coordskey]['@text'];
}
}

$coords = explode(";", $array[$coordskey]);
unset($array[$coordskey]);
Expand Down

0 comments on commit 5c759ca

Please sign in to comment.