Google maps add marker by button click

how can i add a marker to the map and set its position by a click event?

Community Page
Last updated: