I am storing marker coordinates in MySQL as shown in the image linked below.
https://i.sstatic.net/taAoh.jpg
My goal is to allow users to draw on maps like the image linked below.
https://i.sstatic.net/exiAm.jpg
Then, I want to be able to retrieve the shape and select markers within that specific shape from MySQL using a query. For example:
$query = mysql_query("SELECT location
FROM table WHERE Coordinates are within the polygon");
I think I may need to use AJAX and I am working with Google Maps v3. Is it possible to achieve this functionality?
ANY HELP would be greatly appreciated. Any alternative ideas on how to accomplish this task?