Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Map View now works with Interface Builder

  • Loading branch information...
commit 8691b55cebb3e6f7882f7edc932b215d6a071fac 1 parent 68c101a
Alexander Lippling authored
Showing with 23 additions and 8 deletions.
  1. +23 −8 REVClusterMap/REVClusterMap/REVClusterMapView.m
View
31 REVClusterMap/REVClusterMap/REVClusterMapView.m
@@ -13,6 +13,7 @@
#import "REVClusterManager.h"
@interface REVClusterMapView (Private)
+- (void) setup;
- (BOOL) mapViewDidZoom;
@end
@@ -28,18 +29,32 @@ - (id) initWithFrame:(CGRect)frame
self = [super initWithFrame:frame];
if (self)
{
- annotationsCopy = nil;
-
- self.minimumClusterLevel = 100000;
- self.blocks = 4;
-
- super.delegate = self;
-
- zoomLevel = self.visibleMapRect.size.width * self.visibleMapRect.size.height;
+ [self setup];
+ }
+ return self;
+}
+
+- (id) initWithCoder:(NSCoder *)aDecoder
+{
+ self = [super initWithCoder:aDecoder];
+ if (self)
+ {
+ [self setup];
}
return self;
}
+- (void) setup
+{
+ annotationsCopy = nil;
+
+ self.minimumClusterLevel = 100000;
+ self.blocks = 4;
+
+ super.delegate = self;
+
+ zoomLevel = self.visibleMapRect.size.width * self.visibleMapRect.size.height;
+}
- (void)dealloc
{
Please sign in to comment.
Something went wrong with that request. Please try again.