Skip to content

Commit

Permalink
added click logging for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Trusty committed Jun 1, 2013
1 parent d7a9598 commit 19583e0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions map.js
Expand Up @@ -14,7 +14,7 @@ FruitDrop.prototype = {
var mapOptions = {
center: new google.maps.LatLng(40.0195625603, -105.279270661),
zoom: 17,
mapTypeId: google.maps.MapTypeId.HYBRID
mapTypeId: google.maps.MapTypeId.ROADMAP
};

this._map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
Expand Down Expand Up @@ -48,7 +48,7 @@ FruitDrop.prototype = {
type: 'GET',
url: 'http://fallingfruit.org/locations/markers.json',
data: {
muni: 1,
muni: 0,
nelat: bounds.getNorthEast().lat(),
nelng: bounds.getNorthEast().lng(),
swlat: bounds.getSouthWest().lat(),
Expand Down Expand Up @@ -90,7 +90,9 @@ FruitDrop.prototype = {
});

google.maps.event.addListener(marker, 'click', function() {
console.log('caught click');
infowindow.open(this._map, marker);
console.log('info window opened..');
});
},

Expand Down

0 comments on commit 19583e0

Please sign in to comment.