...
|
...
|
@@ -15,32 +15,33 @@ |
|
|
|
|
|
- (void)viewDidLoad
|
|
|
{
|
|
|
NSLog(@"viewDidLoad");
|
|
|
NSLog(@"viewDidLoad");
|
|
|
[super viewDidLoad];
|
|
|
|
|
|
CLLocationCoordinate2D firstLocation;
|
|
|
firstLocation.latitude = 51.2795;
|
|
|
firstLocation.longitude = 1.082;
|
|
|
CLLocationCoordinate2D firstLocation;
|
|
|
firstLocation.latitude = 51.2795;
|
|
|
firstLocation.longitude = 1.082;
|
|
|
|
|
|
self.mapView = [[[RMMapView alloc] initWithFrame:CGRectMake(10, 20, 300, 340)] autorelease];
|
|
|
[mapView setBackgroundColor:[UIColor greenColor]];
|
|
|
[[self view] addSubview:mapView];
|
|
|
[[self view] sendSubviewToBack:mapView];
|
|
|
self.mapView = [[[RMMapView alloc] initWithFrame:CGRectMake(10, 20, 300, 340)] autorelease];
|
|
|
self.mapView.adjustTilesForRetinaDisplay = NO;
|
|
|
[self.mapView setBackgroundColor:[UIColor greenColor]];
|
|
|
[[self view] addSubview:mapView];
|
|
|
[[self view] sendSubviewToBack:mapView];
|
|
|
}
|
|
|
|
|
|
- (void)dealloc
|
|
|
{
|
|
|
[mapView removeFromSuperview];
|
|
|
self.mapView = nil;
|
|
|
[super dealloc];
|
|
|
self.mapView = nil;
|
|
|
[super dealloc];
|
|
|
}
|
|
|
|
|
|
- (IBAction)doTheTest:(id)sender
|
|
|
{
|
|
|
CLLocationCoordinate2D secondLocation;
|
|
|
secondLocation.latitude = -43.63;
|
|
|
secondLocation.longitude = 172.66;
|
|
|
[self.mapView setCenterCoordinate:secondLocation];
|
|
|
CLLocationCoordinate2D secondLocation;
|
|
|
secondLocation.latitude = -43.50;
|
|
|
secondLocation.longitude = 172.56;
|
|
|
[self.mapView setCenterCoordinate:secondLocation];
|
|
|
}
|
|
|
|
|
|
- (IBAction)takeSnapshot:(id)sender
|
...
|
...
|
|