We are using Google maps API V3 and we have a set of boundries (currently in a KML file) which are not square (let’s use the shape of England as an example) and I need to generate a random latitude and longitude from within the boundry when a user completes an action.
Is there any clever way of doing this in javascript/jQuery or a javascript library that would do this already?
You could do something like this I think Dave.
http://code.google.com/apis/maps/documentation/javascript/examples/event-closure.html
With this
http://gmaps-samples-v3.googlecode.com/svn/trunk/country_explorer/country_explorer.html