Skip to content

Commit

Permalink
Added to missing methods to the project
Browse files Browse the repository at this point in the history
SetZoomEnable and setScrollEnable, they don't do anything for ArcGIS
  • Loading branch information
alpascual committed Mar 29, 2013
1 parent 015a971 commit e4b339d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
3 changes: 3 additions & 0 deletions MapKit/MKMapView.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
- (void)removeAnnotations:(NSArray *)annotations;
//- (CGPoint)convertCoordinate:(CLLocationCoordinate2D)coordinate toPointToView:(UIView *)view;

- (void)setZoomEnable:(BOOL)enabled;
- (void)setScrollEnable:(BOOL)enabled;

@property (nonatomic, readonly) NSArray *annotations;
- (NSSet *)annotationsInMapRect:(MKMapRect)mapRect NS_AVAILABLE(NA, 4_2);

Expand Down
10 changes: 10 additions & 0 deletions MapKit/MKMapView.m
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,16 @@ - (void)mapViewDidLoad:(AGSMapView *)mapView
// return [self convertCoordinate:coordinate toPointToView:view];
//}


- (void)setZoomEnable:(BOOL)enabled
{

}
- (void)setScrollEnable:(BOOL)enabled
{

}

- (void)registerAsObserver {
[ self.locationDisplay addObserver:self
forKeyPath:@"location"
Expand Down
4 changes: 0 additions & 4 deletions SimpleMap.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
887F76351683893D009D58BA /* MKAnnotationView.m in Sources */ = {isa = PBXBuildFile; fileRef = 887F761D1683893D009D58BA /* MKAnnotationView.m */; };
887F76361683893D009D58BA /* MKGeometry.m in Sources */ = {isa = PBXBuildFile; fileRef = 887F76211683893D009D58BA /* MKGeometry.m */; };
887F76371683893D009D58BA /* MKMapView.m in Sources */ = {isa = PBXBuildFile; fileRef = 887F76231683893D009D58BA /* MKMapView.m */; };
887F76381683893D009D58BA /* MKOverlay.m in Sources */ = {isa = PBXBuildFile; fileRef = 887F76251683893D009D58BA /* MKOverlay.m */; };
887F76391683893D009D58BA /* MKOverlayView.m in Sources */ = {isa = PBXBuildFile; fileRef = 887F76271683893D009D58BA /* MKOverlayView.m */; };
887F763A1683893D009D58BA /* MKPinAnnotationView.m in Sources */ = {isa = PBXBuildFile; fileRef = 887F76291683893D009D58BA /* MKPinAnnotationView.m */; };
887F763B1683893D009D58BA /* MKPlaceMark.m in Sources */ = {isa = PBXBuildFile; fileRef = 887F762B1683893D009D58BA /* MKPlaceMark.m */; };
Expand Down Expand Up @@ -85,7 +84,6 @@
887F76221683893D009D58BA /* MKMapView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MKMapView.h; sourceTree = "<group>"; };
887F76231683893D009D58BA /* MKMapView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MKMapView.m; sourceTree = "<group>"; };
887F76241683893D009D58BA /* MKOverlay.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MKOverlay.h; sourceTree = "<group>"; };
887F76251683893D009D58BA /* MKOverlay.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MKOverlay.m; sourceTree = "<group>"; };
887F76261683893D009D58BA /* MKOverlayView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MKOverlayView.h; sourceTree = "<group>"; };
887F76271683893D009D58BA /* MKOverlayView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MKOverlayView.m; sourceTree = "<group>"; };
887F76281683893D009D58BA /* MKPinAnnotationView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MKPinAnnotationView.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -207,7 +205,6 @@
887F76221683893D009D58BA /* MKMapView.h */,
887F76231683893D009D58BA /* MKMapView.m */,
887F76241683893D009D58BA /* MKOverlay.h */,
887F76251683893D009D58BA /* MKOverlay.m */,
887F76261683893D009D58BA /* MKOverlayView.h */,
887F76271683893D009D58BA /* MKOverlayView.m */,
887F76281683893D009D58BA /* MKPinAnnotationView.h */,
Expand Down Expand Up @@ -307,7 +304,6 @@
887F76351683893D009D58BA /* MKAnnotationView.m in Sources */,
887F76361683893D009D58BA /* MKGeometry.m in Sources */,
887F76371683893D009D58BA /* MKMapView.m in Sources */,
887F76381683893D009D58BA /* MKOverlay.m in Sources */,
887F76391683893D009D58BA /* MKOverlayView.m in Sources */,
887F763A1683893D009D58BA /* MKPinAnnotationView.m in Sources */,
887F763B1683893D009D58BA /* MKPlaceMark.m in Sources */,
Expand Down
Binary file not shown.

0 comments on commit e4b339d

Please sign in to comment.