Drawing an overlayed circle

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
YourDirector
Forum Newbie
Posts: 2
Joined: Wed Feb 03, 2010 9:17 pm

Drawing an overlayed circle

Post 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
jaiswarvipin
Forum Commoner
Posts: 32
Joined: Sat Sep 12, 2009 3:43 pm
Location: India

Re: Drawing an overlayed circle

Post by jaiswarvipin »

please refer the http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm. whcih help you dwar any shape at any loction.
Post Reply