I'm working with the Drawing Library of the Google Maps API and i want to trigger the drawing of a marker with a custom button.
I've read this part of the documentation :
Hiding the drawing control causes the drawing tools control to not display, but all of the functionality of the DrawingManager class is still available. In this way, you can implement your own control, if desired. Removing the DrawingManager from the map object disables all drawing functionality; it must be reattached to the map with drawingManager.setMap(map), or a new DrawingManager object constructed, if drawing features are to be restored.
But i cannot find out how to use the DrawingManager to do this.