How to remove square and circle option from DrawingManager
问题 I am tyring to get it so my DrawingManager only has the option to pan and have a polygon, but I can't figure out how to remove the rest of the options (polyline, square, circle).. I define my DrawingManager and have tried removing the rectangleOptions and circleOptions but that doesn't seem to do anything. var polyOptions = { strokeWeight: 0, fillOpacity: 0.45, editable: true }; drawingManager = new google.maps.drawing.DrawingManager({ markerOptions: { draggable: true }, polylineOptions: {