Skip to content

Commit

Permalink
Little bit of refactoring. Remove some logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
nixta committed Mar 26, 2014
1 parent d334c29 commit 842da31
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
clusterlayer-plugin-ios
=======================

A cluster layer extension to the ArcGIS Runtime for iOS.
A cluster layer extension to the [ArcGIS Runtime for iOS](https://developers.arcgis.com/ios/).

The gridding code is based heavily on [Leaflet.markercluster](https://github.com/Leaflet/Leaflet.markercluster/blob/master/src/DistanceGrid.js)

![App](clusterlayer-ios.png)
1 change: 0 additions & 1 deletion Source/AGSClusterLayer/AGSClusterLayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ -(void)rebuildClusterGrid {
for (id<AGSFeature> feature in self.featureLayer.graphics) {
[self.grid addFeature:feature];
}
NSLog(@"Clusters built: %@", self.grid);
}

-(void) renderClusters {
Expand Down
5 changes: 4 additions & 1 deletion Source/AGSClusterLayer/AGSClusterLayerRenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
//

#import <ArcGIS/ArcGIS.h>
@class AGSClusterLayer;
#import "AGSCluster.h"

typedef AGSSymbol*(^SymbolGeneratorBlock)(AGSCluster *);

@interface AGSClusterLayerRenderer : AGSSimpleRenderer
-(id)initAsSurrogateFor:(AGSRenderer *)originalRenderer;
-(id)initAsSurrogateFor:(AGSRenderer *)originalRenderer clusterSymbolBlock:(SymbolGeneratorBlock)clusterSymbolGenerator coverageSymbolBlock:(SymbolGeneratorBlock)coverageSymbolGenerator;
@end
3 changes: 0 additions & 3 deletions Source/AGSClusterLayer/AGSClusterLayerRenderer.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@

#import "AGSClusterLayerRenderer.h"
#import <objc/runtime.h>
#import "AGSCluster.h"

#define kClusterPayloadKey @"__cluster"

typedef AGSSymbol*(^SymbolGeneratorBlock)(AGSCluster *);

@interface AGSClusterLayerRenderer ()
@property (nonatomic, weak) AGSRenderer *originalRenderer;
@property (nonatomic, copy) SymbolGeneratorBlock clusterGenBlock;
Expand Down
Binary file added clusterlayer-ios.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 842da31

Please sign in to comment.