Once the extension is installed, simply use it in your code mentioned below.
Click once on the map to the get the marker and coordinates then you can drag the marker around to the desired place on the map.