title: Remove marker using lat or long gmaps v3
body: <p>I want remove a existing marker using marker's lat or long  . I have a button which is call remove function . The remove function will remove the marker as a lat or long which is define but method is not working </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;meta name="viewport" content="initial-scale=1.0, user-scalable=no"&gt;
          &lt;meta charset="utf-8"&gt;
          &lt;title&gt;Simple markers&lt;/title&gt;
          &lt;style&gt;
              html, body, #map-canvas {
                  height: 100%;
                  margin: 0px;
                  padding: 0px
              }
          &lt;/style&gt;
          &lt;script src="https://maps.googleapis.com/maps/api/js?v=3.exp&amp;sensor=false"&gt;&lt;/script&gt;
          &lt;script&gt;
              function initialize() {
                  var myLatlng = new google.maps.LatLng(-25.363882, 131.044922);
                  var mapOptions = {
                      zoom: 4,
                      center: myLatlng
                  };
                  var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
  
                  var marker = new google.maps.Marker({
                      position: myLatlng,
                      map: map,
                      title: 'Hello World!'
                  });
              }
              function remove()
              {
                  var lastMarker = new google.maps.Marker({
                      map: map,
                      position: new google.maps.LatLng(-25.363882, 131.044922)
                  });
                  lastMarker.setMap(null);
              }
              google.maps.event.addDomListener(window, 'load', initialize);
  
          &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div style="width: 500px; height: 500px;" id="map-canvas"&gt;&lt;/div&gt;
          &lt;input type="button" onclick="remove()" value="Remove" /&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>