Creating map makers with firebase data for maker


I want to pass data from my firebase realtime database to my addMarkers function which is called every time the map is created.

My firebase tree looks something like this,
messageId: {
content: “”,
lat: “”,
lng: “”,

I want the markers to show each messages content and use the lat, lng data fields for the marker position on the map so when a user creates a message, it is placed on the map as a marker that they can click on and read.

Any help or a point in the right direction would be greatly appreciated!