Skip to content

Instantly share code, notes, and snippets.

@Andrewglass1
Created June 25, 2012 23:41
Show Gist options
  • Save Andrewglass1/2992131 to your computer and use it in GitHub Desktop.
Save Andrewglass1/2992131 to your computer and use it in GitHub Desktop.
var visibleMarkers = function() {
var filtered = _.reject(Gmaps.map.markers, function(marker) {
return _.all(marker.revenues, function(revenue) { revenue < PriceRangeFilter.min || revenue > PriceRangeFilter.max;
});
});
filtered = _.reject(filtered, function(marker) {
return _.all(marker.days_since, function(days) {days < DateRangeFilter.recent || days > DateRangeFilter.oldest
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment