Marker on google maps

Use on map click to save info in a database for example firebase..An example with markers data stored (json format) in firebase can be found