-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMapViewController.h
More file actions
43 lines (36 loc) · 1.31 KB
/
MapViewController.h
File metadata and controls
43 lines (36 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// MapViewController.h
// Sleep Blaster touch
//
// Created by Eamon Ford on 4/10/10.
// Copyright 2010 The Byte Factory. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
#import <CoreLocation/CoreLocation.h>
#import "MapDrawingViewController.h"
@interface MapViewController : UIViewController <MKMapViewDelegate, CLLocationManagerDelegate> {
IBOutlet MKMapView *mapView;
IBOutlet UIButton *drawButton;
IBOutlet UIButton *currentLocationButton;
CLLocationManager *locationManager;
MapDrawingViewController *drawingViewController;
BOOL centeredMapOnCurrentLocation;
BOOL shouldFollowCurrentLocation;
BOOL withinCloseProximity;
BOOL usingSignificantChangesOnly;
NSTimer *userLocationTimer;
}
- (IBAction)toggleDrawingView:(id)sender;
- (IBAction)centerOnCurrentLocation:(id)sender;
- (IBAction)centerOnLine:(id)sender;
- (void)saveLocationPointsArrayToUserDefaults:(NSArray *)array;
- (NSArray *)restoreLocationPointsArrayFromUserDefaults;
//- (void)monitorForLineRegion;
- (void)startTrackingLocation;
- (void)stopTrackingLocation;
@property (nonatomic, retain) MKMapView *mapView;
@property (nonatomic, retain) MapDrawingViewController *drawingViewController;
@property (nonatomic, retain) CLLocationManager *locationManager;
@property (nonatomic, retain) IBOutlet UIButton *drawButton;
@end