Page 1 of 1

Drawing an overlayed circle

Posted: Wed Feb 03, 2010 9:26 pm
by YourDirector
I currently have a map (http://www.ukbigfreeze.co.uk/locations.php) which draws on squares at specific locations using data in a list file using this code:

Code: Select all

<?
    for ($i = 0; $i < count($places); $i++)
    {
        $place = spliti(",",$places[$i]);
        $xloc = $place[0];
        $yloc = $place[1];
        
        echo "<area shape='imageellipse' coords='=";
        echo $xloc;
        echo ", ";
        echo $yloc;
        echo ", ";
        echo $xloc + 10;
        echo ", ";
        echo $yloc + 10;
        echo "' href='/?locations=";
        echo strtolower($place[2]);
        echo "' class='showTip ";
        echo $place[2];
        echo "' target='_parent'>\n";
    }
?>
This works perfectly. However, I would like to change it so instead of squares it draws circles but I'm unsure how to do this. If anyone could help it'd be much appreciated.

Regards

Josh

Re: Drawing an overlayed circle

Posted: Thu Feb 04, 2010 4:14 am
by jaiswarvipin
please refer the http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm. whcih help you dwar any shape at any loction.