Ray casting is a popular graphic rendering techniques in the 90s, used to render semi-3D worlds in many games. These repository contain demos for the ray-casting tutorials at permadi.com.
google-maps-draw-shape-lib is a javascript library written over a small set of the Google Maps API, that allows you to draw a polygon shape over a google map and get it's coordinates.