anchor.diff:          new AutocompleteDirectionsHandler(map);
   
           google.maps.event.addListener(map, 'click', function(event) {
  -          addMarker(event.latLng, map);
  +          addSavedMarker(event.latLng, map);
           });
   
   
   
         }
  +
  +
  +       function addSavedMarker(location, map) {
  +       // Add the marker at the clicked location, and add the next-available label
  +      // from the array of alphabetical characters.
  +      var marker = new google.maps.Marker({
  +        position: location,
  +        label: labels[labelIndex++ % labels.length],
  +        map: map
  +      });
  +    }
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
  +
   
   
         function addMarker(location, map) {
  
positive.code:       function initMap() {
  
  
          // $.ajax({
          // method: "GET",
          // url: "/pins"
          // })
          // .done(function(response){
          //   console.log(response)
          //   // console.log(response[0]['latitude'])
          //   for(var i = 0; i < response.length; i ++) {
          //     var marker = {lat: response[i]['latitude'], lng: response[i]['longitude']}
          //     addMarker(marker, map);
          //   }
          // })
  
  
  
  // addMarker(markerStart, map);
  
          // var markerStart = { lat: 41.87661000000001, lng: -87.65071 };
  
          var myPosition = new google.maps.LatLng(42.87661000000001, -87.65071);
  
  
negative.code:           // console.log(response[0]['latitude'])
            for(var i = 0; i < response.length; i ++) {
              var marker = {lat: parseFloat(response[i]['latitude']), lng: parseFloat(response[i]['longitude'])}
              addSavedMarker(marker, map);
            }
          })
  
  
          // addSavedMarker(markerStart, map);
  
  
  
  