Programmatically drawing polygons on a map by joining the outermost markers
I have a sample map layer in this fiddle where the map layer is drawn using fusion table as, var Layer = new google.maps.FusionTablesLayer({ query: { select: 'lat', from: '1BLPDF4n0sW0i0BfD9Yo0DqbshyTH1s5Iuu_1IeU' }, map: map, suppressInfoWindows: true }); How can I draw a polygon programmatically by joining the outermost markers in the map so that if someone add new marker and if it is falling outside the drawn polygon then automatically the polygon should redraw to include the newly added marker too. You want to do a Convex Hull of your points. Example using the Google Maps API v3 on a