diff --git a/ORMap/ORMap/ORMapView/ADMapCluster.m b/ORMap/ORMap/ORMapView/ADMapCluster.m index e87e800..afaaa9d 100644 --- a/ORMap/ORMap/ORMapView/ADMapCluster.m +++ b/ORMap/ORMap/ORMapView/ADMapCluster.m @@ -170,7 +170,7 @@ - (id)initWithAnnotations:(NSArray *)annotations atDepth:(NSInteger)depth inMapR } leftMapRect = MKMapRectMake(XMin, YMin, XMax - XMin, YMax - YMin); - XMin = MAXFLOAT, XMax = 0.0, YMin = MAXFLOAT, YMax = 0.0; + (void)(XMin = MAXFLOAT), (void)(XMax = 0.0), (void)(YMin = MAXFLOAT), YMax = 0.0; for (ADMapPointAnnotation * annotation in rightAnnotations) { const MKMapPoint point = annotation.mapPoint; if (point.x > XMax) { diff --git a/ORMap/ORMap/ORMapView/ORMapView.m b/ORMap/ORMap/ORMapView/ORMapView.m index f1fe1a3..4c326e1 100644 --- a/ORMap/ORMap/ORMapView/ORMapView.m +++ b/ORMap/ORMap/ORMapView/ORMapView.m @@ -216,15 +216,15 @@ - (void)__recluster [mapPointAnnotations addObject:mapPointAnnotation]; } - _rootMapCluster = [ADMapCluster rootClusterForAnnotations:mapPointAnnotations gamma:self.clusterDiscriminationPower clusterTitle:@"%d" showSubtitle:NO]; + self-> _rootMapCluster = [ADMapCluster rootClusterForAnnotations:mapPointAnnotations gamma:self.clusterDiscriminationPower clusterTitle:@"%d" showSubtitle:NO]; dispatch_async(dispatch_get_main_queue(), ^{ [self _clusterInMapRect:self.visibleMapRect]; - _reclusteringInProcess = NO; + self-> _reclusteringInProcess = NO; - if(_reclusterAfterCurrentClusteringFinished) { - _reclusterAfterCurrentClusteringFinished = NO; + if(self-> _reclusterAfterCurrentClusteringFinished) { + self-> _reclusterAfterCurrentClusteringFinished = NO; [self _reclusterOnce]; }