If you add listeners to your DrawingManager, you are given handles to the 
overlays that are drawn: 
https://developers.google.com/maps/documentation/javascript/reference#DrawingManager

For example, in your markercomplete listener, the event argument is a 
Marker. You can then add listeners to that marker as you would normally 
with your own markers.

Enoch

On Thursday, 24 May 2012 06:54:37 UTC+10, Anthony D wrote:
>
> Good Evening 
>
> When utilizing the Drawing Manager to create a marker, polygon, 
> circle, or rectangle is there a way to add a listener to each draw 
> object besides adding a listener to the Draw Manager (var 
> drawingManager)? 
>
>  var drawingManager = new google.maps.drawing.DrawingManager({ 
>                                  drawingMode: 
> google.maps.drawing.OverlayType.CIRCLE, 
>                                  drawingControl: true, 
>                                  drawingControlOptions: { 
>                                  position: 
> google.maps.ControlPosition.TOP_CENTER, 
>                                  drawingModes: [ 
>   
> google.maps.drawing.OverlayType.MARKER, 
>   
> google.maps.drawing.OverlayType.POLYGON, 
>                  google.maps.drawing.OverlayType.CIRCLE, 
>                  google.maps.drawing.OverlayType.RECTANGLE 
>                                  ]}, 
>                                  markerOptions: { 
>                                  icon: markOrange, 
>                  title: 'intersection' 
>                                  }, 
>                                  polygonOptions: { 
>                                  fillColor: '#ff9900', 
>                                  fillOpacity: .65, 
>                                  strokeWeight: 5, 
>                                  clickable: false, 
>                                  editable: true, 
>                                  zIndex: 1 
>                                  }, 
>                 circleOptions: { 
>                                 fillColor: '#0000cc', 
>                                 fillOpacity: .65, 
>                                 strokeWeight: 5, 
>                                 clickable: false, 
>                                 editable: true, 
>                                 zIndex: 1 
>                                 }, 
>                 rectangleOptions: { 
>                                 fillColor: '#00ff00', 
>                                 fillOpacity: .65, 
>                                 strokeWeight: 5, 
>                                 clickable: false, 
>                                 editable: true, 
>                                 zIndex: 1 
>                                 } 
>                                 }); 
> drawingManager.setMap(map);

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/K935oE8O3N4J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to