{"id":18271421,"url":"https://github.com/myell0w/MTLocation","last_synced_at":"2025-04-05T01:31:33.823Z","repository":{"id":1332591,"uuid":"1278354","full_name":"myell0w/MTLocation","owner":"myell0w","description":"A Framework to add convenience-stuff for easier coping with CoreLocation/MapKit on iOS. It includes a custom UIBarButtonItem mimicing the Locate-Me-Button of the built-in Google Maps App","archived":false,"fork":false,"pushed_at":"2013-11-12T12:26:18.000Z","size":362,"stargazers_count":339,"open_issues_count":3,"forks_count":43,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-03-31T07:05:06.152Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/myell0w.png","metadata":{"files":{"readme":"Readme.mdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-01-21T13:14:59.000Z","updated_at":"2024-12-18T11:57:34.000Z","dependencies_parsed_at":"2022-07-29T08:09:42.770Z","dependency_job_id":null,"html_url":"https://github.com/myell0w/MTLocation","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myell0w%2FMTLocation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myell0w%2FMTLocation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myell0w%2FMTLocation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myell0w%2FMTLocation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myell0w","download_url":"https://codeload.github.com/myell0w/MTLocation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276043,"owners_count":20912286,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T11:39:17.738Z","updated_at":"2025-04-05T01:31:28.814Z","avatar_url":"https://github.com/myell0w.png","language":"Objective-C","funding_links":[],"categories":["etc"],"sub_categories":[],"readme":"Read Me\n=====================\n\n![Currently Idle](http://img.skitch.com/20110122-j2e722trxp9gexuyjh1rqwuxs2.png \"Currently Idle\") ![Currently searching for a location](http://img.skitch.com/20110122-e9r8qcmrr4px6d3mijtkhjcwtg.png \"Currently searching for a location\") ![Currently receiving location updates](http://img.skitch.com/20110122-jdpwfa3x52m21gip8ekkj3fsrc.png \"Currently receiving location updates\") ![Currently receiving heading updates](http://img.skitch.com/20110122-1bhcj3gdjkeyktcxtsg2nuqcu6.png \"Currently receiving heading updates\")\n\nDescription\n-----------------\n\nThese classes aim to mimic some of the functions of the built-in Google Maps App on iOS for you.\nCurrently the library contains a simple Location Manager-Singleton that sends out notifications when CLLocationManager-Delegate-Methods are called and a UIBarButtonItem/UIButton that acts as a Locate-Me Button that behaves similar to the one in the Google Maps App.\nThe switch from one mode to another is animated, just like in the Google Maps App.\n\nIt can also be customized to support Heading-Updates, by setting property headingEnabled.\n\nRoutes/Directions\n------------------\n\nIf you want to display routes directly on top of MKMapView have a look at my new framework MTDirectionsKit:\n[mtdirectionsk.it](http://mtdirectionsk.it \"MTDirectionsKit Homepage\")\n\nInstallation\n------------------\n\nJust copy over all .h and .m - Files to your project, as well as the image bundle included. You may exchange the images with your own, but make sure to adopt frames and sizes in the code, if your images have a different size than the one provided (only if there are any visual quirks).\n\n\nUsage\n------------------\n\nHere's a minimal example of how to use MTLocation:\nhttps://gist.github.com/1373050\n\nIf you have problems getting the map-rotation to work, please refer to the following thread on StackOverflow:\n[Rotating MapView](http://stackoverflow.com/questions/6262463/rotating-mapview-according-to-compass \"Rotating MapView\")\n\nUpdate: MTLocation now provides the category-method [MKMapView sizeToFitTrackingModeFollowWithHeading] to automatically size the MapView.\n\nYou can use MTLocateMeBarButtonItem like this:\n\n\t // Configure Location Manager\n\t [MTLocationManager sharedInstance].locationManager.desiredAccuracy = kCLLocationAccuracyBest;\n\t [MTLocationManager sharedInstance].locationManager.distanceFilter = kCLDistanceFilterNone;\n\t [MTLocationManager sharedInstance].locationManager.headingFilter = 5; // 5 Degrees\n\n\t // Create MapView\n\t self.mapView = [[[MKMapView alloc] initWithFrame:CGRectZero] autorelease];\n\t [self.view addSubview:self.mapView];\n\n     // create locate-me item, automatically prepare mapView\n\t self.locateMeItem = [UIBarButtonItem userTrackingBarButtonItemForMapView:self.mapView];\n \t // add target-action\n\t [self.locateMeItem addTarget:self action:@selector(myCustomSelector:) forControlEvents:UIControlEventTouchUpInside];\n\t // disable heading\n\t self.locateMeItem.headingEnabled = NO;\n\t \n\t // create array with ToolbarItems\n\t NSArray *toolbarItems = [NSArray arrayWithObject:self.locateMeItem];\n\t // set toolbar items\n\t [self.toolbar setItems:toolbarItems animated:NO];\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyell0w%2FMTLocation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyell0w%2FMTLocation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyell0w%2FMTLocation/lists"}