This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import <Foundation/Foundation.h> | |
| #import <MapKit/MapKit.h> | |
| @interface CellMapFactory : NSObject <MKMapViewDelegate> | |
| - (void) createCellMapForPlace:(NSDictionary*)locationDictionary inImageView:(UIImageView*)imageView; | |
| @end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)setupMapSnapshot | |
| { | |
| CLLocationCoordinate2D coordinate = self.outlet.annotaion.coordinate; | |
| MKMapSnapshotOptions* options = [MKMapSnapshotOptions new]; | |
| options.size = self.mapImageView.frame.size; | |
| options.scale = [[UIScreen mainScreen] scale]; | |
| options.region = MKCoordinateRegionMakeWithDistance(coordinate, 2000.f, 2000.f); | |
| MKMapSnapshotter* snapshotter = [[MKMapSnapshotter alloc] initWithOptions:options]; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // UIImageView+MapSnapshot.h | |
| // Awning | |
| // | |
| // Created by Frank Schmitt on 3/31/14. | |
| // | |
| #import <UIKit/UIKit.h> | |
| #import <MapKit/MapKit.h> |