title: google maps marker stop
body: <p>this is my google maps code 
  ı want to google maps marker stop 
  help me please !!! </p>
  
  <pre><code>     map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
      // initialize marker
  
      var marker = new google.maps.Marker({
          position: map.getCenter(),
          draggable: true,
          map: map
  
  
      });
  
      //marker.forEach(function (marker) {
      //    marker.setMap(null);
      //});
      //marker = [];
      // intercept map and marker movements
      window.google.maps.event.addListener(map, "idle", function() {
          marker.setPosition(map.getCenter());
          var latitude = map.getCenter().lat().toFixed(6);
          var longitude = map.getCenter().lng().toFixed(6);
          window.google.maps.event.trigger(map, "resize");
          getLocationAdressName(latitude, longitude);
          marker.dragging.disable();
  
      });
  </code></pre>