var x = document.getElementById("location");
function getLocation() {
    if (navigator.geolocation) {
        navigator.geolocation.getCurrentPosition(showPosition);
    } else {
        x.innerHTML = "Geolocation is not supported by this browser.";
    }
}
var myMap = {};

function showPosition(position) {
    x.innerHTML = "Latitude: " + position.coords.latitude +
    "<br>Longitude: " + position.coords.longitude;
    initMap(position.coords.latitude, position.coords.longitude);
}

var map;
  function initMap(latt, lngg) {
    map = new google.maps.Map(document.getElementById('map'), {
      center: {lat: latt, lng: lngg},
      zoom: 17
    });
  }

$( document ).ready(function() {
  getLocation();
  initMap();
});

@@ -650,16 +650,223 @@
     %7D);%0A
+    var marker = new google.maps.Marker(%7B%0A      position: map.getCenter(),%0A      icon: %7B%0A        path: google.maps.SymbolPath.CIRCLE,%0A        scale: 10%0A      %7D,%0A      draggable: true,%0A      map: map%0A    %7D);%0A
   %7D%0A%0A$( 

add marker to lacation: