Skip to content

Instantly share code, notes, and snippets.

@poltib
poltib / gist:11315915
Created April 26, 2014 09:42
gmap_script_listeners
google.maps.event.addListener(map, 'click', function(evt) {
if (path.getLength() === 0) {
path.push(evt.latLng);
poly.setPath(path);
} else {
return grow_path(path.getAt(path.getLength() - 1), evt.latLng);
}
});
reset.addEventListener('click', function(evt) {

Keybase proof

I hereby claim:

  • I am poltib on github.
  • I am poltib (https://keybase.io/poltib) on keybase.
  • I have a public key ASAS40zf1vwhOYwwcfbvfVjahF8XwhsZXdCnOvZZjJVbNgo

To claim this, I am signing this object: