function main ($features) {
- header("Cache-control: no-cache");
+ header ("Cache-control: no-cache");
echo '<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
$title;
if ($imgurl) {
- $imgurlHTML = sprintf ('<img alt="%s" src="%s">', $alt, $imgurl);
+ $imgurlHTML = sprintf ('<a href="%s"><img alt="%s" src="%s"></a>',
+ $imgurl, $alt, $imgurl);
} else {
$imgurlHTML = "";
}