imagefilledrectangle" title="Zobacz w manualu PHP" target="_manual i na przykład Wrocław to imagefilledrectangle($im,769, 239, 780, 250, $kolor); a jak zrobić żeby nie musiał ręcznie znajdować punktu


<?php $x = 1501/180; //Szerokość obrazka dzielę przez 180 stopni bo 90 *2; $x = 34.03 * $x; //Szerokość geograficzna Los Angeles razy 1 stopień z poprzedniego. $y = 751/360; //Długość obrazka dzielę przez 360 bo 180 *2; $y = 118.14 * $y; //Długość geograficzną Los Angeles razy 1 stopień z poprzedniego. imagefilledrectangle($im,$x, $y, $x+5, $y+5, $kolor); ?>
<?php $x = stopnie("34^03'"); $y = stopnie("118^13'"); ?>
<?php $x = stopnie("34^03'"); $y = stopnie("118^13'"); imagefilledrectangle($im,$x, $y, $x+40, $y+40, $kolor); ?>
<?php $x = stopnie("34^03'"); $y = stopnie("118^13'"); imagefilledrectangle($im,$x, $y, $x+40, $y+40, $kolor); ?>
<?php $x = stopnie("34^03'"); $y = stopnie("118^13'"); imagefilledrectangle($im,$x, $y, $x+40, $y+40, $kolor); ?>