Version 1.1.0 - KML fix
Posted: 16 Aug 2010, 19:48
Hi @,
to make the KML files working for the 1.1.10 version you need to change the setKMLFile functions in the phocamapsmap.php.
File: /administrator/components/com_phocamaps/helpers/phocamapsmap.php
Reference: http://code.google.com/apis/maps/docume ... #KMLLayers
best regards
Andrej
to make the KML files working for the 1.1.10 version you need to change the setKMLFile functions in the phocamapsmap.php.
File: /administrator/components/com_phocamaps/helpers/phocamapsmap.php
Code: Select all
function setKMLFile($kmlFile) {
$js =' var ctaLayer'.$this->_id.' = new google.maps.KmlLayer(\''.$kmlFile.'\');'."\n"
.'ctaLayer'.$this->_id.'.setMap(mapPhocaMap'.$this->_id.')'."\n"; // File is checked in View (after loading from Model)
return $js;
}
best regards
Andrej