/trunk/services/modules/0.1/moissonnage/cartes/SourceDonnees.php |
---|
18,7 → 18,7 |
$this->limitesCarte[$bord] = str_replace(",", ".", round($valeur, 6)); |
} |
$this->bdd = new Bdd(); |
$this->taxon = $taxon; |
$this->taxon = $taxon ?? []; |
$this->nomRang = $this->obtenirNomRang(); |
if ($this->nomRang == 'espece' || $this->nomRang == 'sous_espece') { |
$this->taxons = $this->recupererSynonymesEtSousEspeces(); |
/trunk/services/modules/0.1/moissonnage/cartes/FormateurSVG.php |
---|
300,7 → 300,7 |
if ($couleurContour != 'none') { |
imagepolygon($this->image, $coordonnees, count($coordonnees) / 2, $this->allouerCouleur($couleurContour)); |
} |
if ($couleurPolygone != 'none') { |
if (is_array($coordonnees) && $couleurPolygone != 'none') { |
$contourGrille = "rgba(255,255,255,".($this->format >= 300 ? 0.4 : 0).")"; |
imagefilledrectangle($this->image, $coordonnees[0], $coordonnees[1], $coordonnees[4], $coordonnees[5], |
$this->allouerCouleur($couleurPolygone)); |