Re: Function? How to find if xy values are within a coordinates of polygon?

From: Date: Thu, 12 Jul 2001 00:56:36 +0000
Subject: Re: Function? How to find if xy values are within a coordinates of polygon?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-57525@lists.php.net to get a copy of this message
On Thu, 12 Jul 2001 05:45, SED wrote: > I'm making a map (image) which you can click on and the script finds > the area-code based on where you click on the map. > > Before I spend time on writing my own code to find if xy values are > within a certain coordinates of a polygon, do you know of any build in > function to do it? I have browsed lightly through the PHP-manual but > not found any. > > Thanks, > > SED If you use the image as a submit button (<INPUT TYPE=image NAME=map SOURCE="whatever.gif"> then you can read the x and y co-ords of the mouse as $map_x and $map_y -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA NEWS! Survivor of siamese twins joins parents

« previous php.general (#57525) next »