View gist:8219f82bc29dc9d37fd7
- (void)mapView:(MKMapView *)mapView regionDidChangeAnimated:(BOOL)animated
{
double scale = self.mapView.bounds.size.width / self.mapView.visibleMapRect.size.width;
if (scale < <#yourScaleLimit#>) {
[[NSOperationQueue new] addOperationWithBlock:^{
NSArray *annotations = [self.clusteringManager clusteredAnnotationsWithinMapRect:mapView.visibleMapRect withZoomScale:scale];
[self.clusteringManager setAnnotations:annotations forMapView:self.mapView];
}];
} else {
View gist:5998034874b119fab0e4
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View gist:8977922
{
"objectname": "album",
"objectguids": [
"cjLO4xCc"
],
"mediaassetguids": [
"sV9GYksIX1"
]
}
View MW
{
dateAdded = "2014-02-12T02:11:39.33";
dateCreated = "2014-02-12T16:14:08";
description = "<null>";
guid = sV9GYksIX1;
id = 53865;
md5 = 691b9d6d0fc4a0ed341fbf7b38d393b0;
originalFilename = "691b9d6d0fc4a0ed341fbf7b38d393b0.jpg";
thumbnail = {
guid = teROTUllsL;