Click the timestamp and save your Pen to save the new version.drawingMode: google.maps.drawing.OverlayType.POLYGON, markerOptions: draggable: truegoogle.maps.event.addListener(map, click, clearSelection) google.maps. event.addDomListener Im trying to allow a user to draw a polygon on a Google Map and once its drawn, I would like to get the coordinates.Add a listener for the click event. google.maps.event.
addListener(map, click, this.addLatLng) I am working on a webapplication. I have a google map, where I add polygons from an array.var addListenersOnPolygon function(polygon) google.maps.event .addListener(polygon, click, function (event) alert(polygon.indexID) (polyClick)"click(event)". (polyDblClick)"delete(event)"> . Pass the instance of the array in the event handler.Tags: polygon object click angular google maps. I have a Google map with drawing manager enabled where a user can draw a polygon and save it to my db. I added an event listener to the drawingManager object for the overlaycomplete event.
14 Lines and Polygons. Mapping in the Cloud Peterson. Simple Line. Map center. function initialize() . suppressInfoWindows: false, map: map ) Address of Nebraska counties KML file. google.maps.event.addListener(kmlLayer, click, function(kmlEvent).