/trunk/widget/modules/carto/Carto.php |
---|
79,9 → 79,8 |
$url_limites_communales .= '/'.$kml; |
$widget['donnees']['url_limites_communales'][] = $url_limites_communales; |
} |
} else { |
$this->messages[] = "Vous devez indiquer le numero de departement."; |
} |
return $widget; |
} |
/trunk/widget/modules/carto/squelettes/carte_defaut.tpl.html |
---|
91,10 → 91,12 |
map = new google.maps.Map(document.getElementById('carte'), carteOptions); |
// Ajout des limites communales sur la carte |
<? if (isset($url_limites_communales)) : ?> |
<? foreach ($url_limites_communales as $url) : ?> |
ctaLayer = new google.maps.KmlLayer('<?=$url?>'); |
ctaLayer.setMap(map); |
<? endforeach; ?> |
<? endif; ?> |
// Create the DIV to hold the control and call the HomeControl() |
// constructor passing in this DIV. |