/MapHacks

Some convenience categories for Apple & Google map sdks

Primary LanguageObjective-CMIT LicenseMIT

MapHacks for iOS

Some convenience categories for Apple & Google map sdks

Locking zoom categories

These categories will lock zoom to the center of the screen and give you a few response blocks when gestures finish.

Apple's MKMapKit

self.mapView = [[MKMapView alloc] initWithFrame:self.view.bounds];
[self.view addSubview:self.mapView];
self.mapView.delegate = self;

[self.mapView enableLockingZoom];

Google Maps GSMapView

self.mapView = [[GMSMapView alloc] initWithFrame:self.view.bounds];
[self.view addSubview:self.mapView];
self.mapView.delegate = self;

[self.mapView enableLockingZoom];

You might need to get an API key to get the demo to work for Google Maps. Find out here: https://developers.google.com/maps/documentation/ios-sdk/start