I am trying to get the marker to show up on the google map. I have already been to various SO pages here. Could you please show me the code to make a marker show up on the map?

I have this Javascript:

```
function geoFindMe() {
  var output = document.getElementById("latlongdiv");

      if (!navigator.geolocation){
        output.innerHTML = "<p>Geolocation is not supported by your browser</p>";
        return;
      }

      function success(position) {
        var latitude  = position.coords.latitude;
        var longitude = position.coords.longitude;

        output.innerHTML = '<p>Latitude is ' + latitude + '° <br>Longitude is ' + longitude + '°</p>';

        var img = new Image();
        img.src = "https://maps.googleapis.com/maps/api/staticmap?center=" + latitude + "," + longitude + "&zoom=13&size=300x300&sensor=false";

        output.appendChild(img);
      };

      function error() {
        output.innerHTML = "Unable to retrieve your location";
      };

      output.innerHTML = "<p>Locating</p>";

      navigator.geolocation.getCurrentPosition(success, error);
    }

    // Function for adding a marker to the page.
        function addMarker(location) {
            marker = new google.maps.Marker({
                position: latlng,
                map: map
            });
        }

```

Here is the jsbin:

<http://jsbin.com/luwakoburo/edit?html,console,output>

Here are the other pages here that I have already checked:

[Add Marker function with Google Maps API](https://stackoverflow.com/questions/7701077/add-marker-function-with-google-maps-api)

[setting google maps marker javascript](https://stackoverflow.com/questions/31577089/setting-google-maps-marker-javascript)