Shared publicly  - 
 
"While working with Google Maps recently, our team needed to be able to drop map markers inside various different types of shapes drawn on the map. This is simple for circles and rectangles as each have a defined center point. For more complex polygons however, a 'sensible' location to drop a marker is not necessarily as obvious nor directly provided by the Google Maps API. This led us to look for a lightweight solution that would find a reasonably appropriate spot inside the polygon to drop a marker, preferably using Google's existing Maps geometry functionality."

http://hubs.ly/H05g0VN0

#javascript #tutorial
1
Add a comment...