anchor.diff:    }
           //***this is for the search of activity. Uncomment to have search markers show on map***
       activity = new google.maps.places.PlacesService(map);
  -    google.maps.event.addListenerOnce(map, 'bounds_changed', performSearch)
  +    google.maps.event.addListenerOnce(map, 'center_changed', performSearch)
           }
   
         });
  
positive.code:   var midpoint;
  
  // Assigns an info window to every marker==========================================
  
    function handleSearchResults(results, status){
      for(var i = 0; i < results.length; i++) {
        var marker1 = new google.maps.Marker({
          position: results[i].geometry.location,
          map: map,
        });
        var infoWindow = new google.maps.InfoWindow({
          content: JSON.stringify(results[i].rating)
        });
        google.maps.event.addListener(marker1, 'click', function(){
          infoWindow.open(map, this)
        })
      }
    }
  
  
  
  
negative.code: 
    function performSearch(){
      var request = {
        radius: radius / 2,
        location: midpoint,
        name: (document.getElementById("activity").value)
      }
  