I have a marker called chicagoMarker and each time the user zooms in closer I would like to alert them if they are getting closer to chicago. I am not sure if I have a problem with my event listener in this instance.
if (score==0) {
chicagoMarker.setMap(map)
google.maps.event.addListener(chicagoMarker,'bounds_changed',function(){
zoom = map.getZoom();
if (bounds.contains(chicagoMarker)){
window.alert("Good Job!");
}
})
}