Sample code for adding marker on click to a map

does anyone have sample code for adding a marker to a map after clicking?

This was the first result that came up when I searched the Community @hanaspahia3e :smiley:

Is that what you’re looking for?