'Start drawing circle with drawing manager google on click agm-marker
I just want to trigger "start" of drawing manager cirlce when the user click on marker ,so the user can draw a circle around marker position
this is the code i've tried, when user click the marker start drawing a circle too and not click again on the map to do it:
markerClicked(e: any) {
console.log(e);
this.drawingManager.setOptions({
drawingMode: google.maps.drawing.OverlayType.CIRCLE,
drawingControlOptions: {
drawingModes: ['circle'],
},
})
google.maps.event.trigger(map,'click')
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
