backport
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Tue, 21 Jun 2005 21:19:45 +0000 (21:19 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:29:24 +0000 (23:29 +0200)
Patches applied:

 * opensource@polytechnique.org--2005/platal--release--0.9.7--patch-8
   finer scattering

git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-743

htdocs/geoloc/globe.php
templates/geoloc/index.tpl

index 05c3497..a8b32d0 100644 (file)
@@ -29,8 +29,11 @@ $img = imageCreateFromPng("../images/globe.png");
 
 $coul = imagecolorallocate($img, 0, 0, 0);
 
-while ($a = $res->next()) 
-  imagefilledellipse($img, round(($a[1]/100000 + 180 )/360*600), round((90 - $a[0]/100000)/180*300), 5, 5, $coul);
+while ($a = $res->next()) {
+    $x = floor(($a[1]/100000 + 180 )/360*600);
+    $y = floor((90 - $a[0]/100000)/180*300);
+    imagefilledrectangle($img, $x, $y, $x+1, $y+1, $coul);
+}
 
 imagePng($img);
 imagedestroy($img);
index 4f506b7..a9c5cbe 100644 (file)
@@ -31,7 +31,7 @@
 </ul>
 
 <p class="center">
-<img src="globe.php" width="500" alt="Carte du monde des X"/>
+<img src="globe.php" alt="Carte du monde des X"/>
 </p>
 
 <p class="descr">Pour savoir comment ça marche tu peux aller faire un tour sur le <a href="http://www.aaege.org/GeolocDev/">site de développement</a> du projet.</p>