Skip to content

Commit

Permalink
For distance calc needs to be in for loop for carmen/waldo
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Davis committed Mar 7, 2013
1 parent b958e2e commit 3506c2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion where/where.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ function drawW_C(map)
pt = new google.maps.LatLng(lat, lon);
C_W.push(new google.maps.Marker({position: pt, title: "Carmen Sandiego", icon: "assets/carmen_icon.png"}));
}
dist = find_waldo(lat, lon);
}
for (var m in C_W) {
C_W[m].setMap(map);
name = C_W[m].title
dist = find_waldo(lat, lon);
contentWC = 'Distance to ' + name + ' is: ' + dist
infowindow3 = new google.maps.InfoWindow();
infowindow3.setContent(contentWC);
Expand Down

0 comments on commit 3506c2d

Please sign in to comment.