Skip to content

Instantly share code, notes, and snippets.

@petrabarus
Created June 7, 2012 05:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petrabarus/2886722 to your computer and use it in GitHub Desktop.
Save petrabarus/2886722 to your computer and use it in GitHub Desktop.
$.each(UBMap.PropertyStore.markers, function(i, marker){
window.setTimeout(function() {
if (bounds.contains(marker.getPosition()) &&
($.inArray(marker.listingType, filter.fListing) > -1) &&
($.inArray(marker.propertyType, filter.fProperty) > -1) &&
UBMap.FilterForm.filterMarker(marker, module.moreFilterParams)){
count++;
marker.setVisible(true);
var item = UBMap.PropertyPanel.putItemList(i, marker);
module.attachLeftPaneEvent(item, marker);
marker.setIcon(useSmallIcon ? marker.smallIcon : marker.largeIcon);
markerIds.push(marker.propertyId);
} else {
marker.setVisible(false);
}
}, 0);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment