35,6 → 35,7 |
//<![CDATA[ |
var markerClusterer = null; |
var map = null; |
var nt = '<?=$num_taxon?>'; |
var infoBulle = new google.maps.InfoWindow(); |
google.maps.event.addListener(infoBulle, 'domready', function() { |
if ($("#observations table").get() != 'undefined') { |
88,7 → 89,7 |
var url = '<?=$url_base?>carto?carte=observations'+ |
'&utilisateur=<?=$utilisateur?>'+ |
'&projet=<?=$projet?>'+ |
'&num_taxon=<?=$num_taxon?>'+ |
'&num_taxon='+nt+ |
'&dept=<?=$dept?>'+ |
'&format='+format+'&station='+stationId; |
$.get(url, function(observations){ |
115,11 → 116,11 |
google.maps.event.trigger(map, 'resize'); |
}; |
|
function filtrerParTaxon(nt) { |
var url = '<?=$url_cel_carto?>/carte-defaut-json/<?=$utilisateur?>/<?=$projet?>/<?=$dept?>/'+nt+'?formatRetour=jsonp&callback=?'; |
function filtrerParTaxon(num_taxon) { |
var url = '<?=$url_cel_carto?>/carte-defaut-json/<?=$utilisateur?>/<?=$projet?>/<?=$dept?>/'+num_taxon+'?formatRetour=jsonp&callback=?'; |
$.getJSON(url, function (observations) { |
obs = observations; |
alert(obs.nombre); |
nt = num_taxon; |
refreshMap(); |
}); |
}; |
168,7 → 169,7 |
<div id="pl-fermeture"><< Fermer [x]</div> |
</div> |
<div id="pl-corps"> |
<ul> |
<ol> |
<? foreach ($taxons as $taxon) : ?> |
<li> |
<a href="#" onclick="filtrerParTaxon(<?=$taxon['nt']?>);"> |
177,7 → 178,7 |
</a> |
</li> |
<? endforeach; ?> |
</ul> |
</ol> |
</div> |
</div> |
<div id="carte"></div> |