'Google map drawing in javascript
I am using google map javascript library for geofence using Drawing and I am not able to set default drawing with lat long like I want to display circle with radius and centre on map using Drawing.
const 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.CIRCLE,
],
},
circleOptions: {
fillColor: '#ffff00',
fillOpacity: 1,
strokeWeight: 5,
clickable: true,
editable: true,
draggable: true,
zIndex: 1,
center: new google.maps.LatLng(17.412127, 78.474921),
radius: 540.4441361233535,
},
});
But circle is not showing on map
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
