title: Android Phonegap: Google Map marker not immediately removed when marker.setMap(null) is called
body: <p>When I remove a marker using <code>marker.setMap(null)</code>, it remains visible until I zoom out at which point Google Maps removes it.</p>
  
  <p>The marker is not visible after being removed on the same HTML page with Chrome on Windows.</p>
  
  <p>It appears that the map is not being refreshed properly after the markers are removed.</p>
  
  <p>Code with the issue (marker should disappear after 5s):</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;script type="text/javascript" charset="utf-8" src="cordova-2.1.0.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" charset="utf-8" src="jquery-1.8.2.min.js"&gt;&lt;/script&gt;
      &lt;style type="text/css"&gt;
        * {
          -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
            }
        html { height: 100%; }
        body { height: 100%; margin: 0; padding: 0 }
        #map_canvas { height: 100% }
      &lt;/style&gt;
      &lt;script type="text/javascript"
        src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAQ7L1PL7pQzSuDfv9kTL_qE4Cp0wy8Oo8&amp;sensor=true"&gt;
      &lt;/script&gt;
      &lt;script type="text/javascript"&gt;
        var theMap = null;
        function initialize() {
          var mapOptions = {
            zoom: 10,
            center: new google.maps.LatLng(37.7749295, -122.4194155),
            disableDefaultUI: true,
            mapTypeId: google.maps.MapTypeId.ROADMAP
          }
          theMap = new google.maps.Map(document.getElementById('map_canvas'),
                                        mapOptions);
          navigator.geolocation.getCurrentPosition(
            function (position) {
              // successfully load position
              var lat = position.coords.latitude;
              var long = position.coords.longitude;
              theMap.setCenter(new google.maps.LatLng(lat, long), 21);
            },
            function (fail) {
                  console.error("Failed to load GPS coordinates");
            }
          );
          var marker;
          function addMarker(itemid, lat, lon) {
                  marker = new google.maps.Marker({
                          position: new google.maps.LatLng(lat, lon),
                          map: theMap
                  });
          }
          addMarker('pokemon', 37.42841, -122.16960);
          setTimeout(function() {marker.setMap(null);}, 5000);
        }
  
  
      &lt;/script&gt;
    &lt;/head&gt;
    &lt;body onload="initialize();"&gt;
      &lt;div id="map_canvas" style="width:100%; height:100%; top:0px; z-index: 10"/&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>