Questions tagged [userlocation]

149 questions
2
votes
1 answer

How can I ask for user location the way google maps does it?

If I go to the google maps homepage, there's a button there with my location. If I press it, the browser asks me if I want to share my location with google. I know of the V3 API's google.loader.ClientLocation, but this isn't asking me anything…
Geo
  • 93,257
  • 117
  • 344
  • 520
2
votes
1 answer

MKMapView showsuserlocation

In my app I have a rare bug that stops showing the userlocation. If I tone the app down and just have the map, and set everything up in the viewDidLoad, and at the end do the typical: myMapView.showsUserLocation = YES; everything works great 99%…
Jason
  • 43
  • 8
2
votes
0 answers

How to Set City for Facebook Test User?

For the purpose of getting Facebook 'user_location' permission , I need to set city location for Facebook Test user which is created from Facebook Developer console. When I enter the city name "The answer provided was invalid" error is occur. How to…
TSM
  • 39
  • 4
2
votes
2 answers

Center MKMapView on userLocation (initially) - only works on iPhone 4?

I implemented the following MKMapView method, which runs after annotations are added. I have my MKMapView map (parishMap) set to "Shows user location" in Interface Builder, and upon loading the mapview, the blue dot always appears within a second or…
geerlingguy
  • 4,682
  • 8
  • 56
  • 92
2
votes
1 answer

Sort array by distance near user location from firebase

Can't figure out how to do automatic sorting addresses near the user. I can not understand where to start and how to write code. I have addresses in my firebase. Addresses have type string (not latitude / longitude). Example: "Москва,…
2
votes
1 answer

CLLocation generates strange Error

I have got a problem with a CLLocation. I wanted to know the distance between two coordinates to show it next to the title of the location in a tableView: static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView…
Lars Petersen
  • 602
  • 9
  • 21
2
votes
3 answers

Pressing Button Centers\Focuses MKmapView onto User's location, Swift

My code: Please anyone ! How to make this button work !?!??! What do i put in the @IBAction brackets to have the function i want ? import UIKit import MapKit import CoreLocation class MapViewController:…
Newbie Questions
  • 463
  • 1
  • 11
  • 31
2
votes
2 answers

MKMapView didUpdateUserLocation not updating

I have an application with map and want to zoom to the current location, when it's updated. I use -(void)mapView:(MKMapView *)mapView didUpdateUserLocation:(MKUserLocation *)userLocation delegate method to know when user location was updated. Now…
Moze
  • 333
  • 2
  • 15
2
votes
4 answers

didUpdateUserLocation not called in iOS 8.1

Since I updated to iOS SDK 8 and 8.1, there have been many problems, including that the method of CLLocationManager didUpdateLocations is no longer called. Here the code: In viewDidLoad: locationManager = [[CLLocationManager alloc]…
Joker
  • 167
  • 1
  • 3
  • 12
2
votes
3 answers

iOS - Mapkit keeps animating user location whenever map view changes (scrolled, zoomed)

I am displaying a user's location on the map using CLLocationManager's coordinates. Everytime I move or zoom the map, the user location pin (blue pin with sonar effect) keeps disappearing and then re-animating back onto the map. (I am NOT referring…
JimmyJammed
  • 9,598
  • 19
  • 79
  • 146
2
votes
3 answers

iOS execute check before push notification is received

I am writing an application that utilizes Apple's Push Notification Service. Some of the push notifications are based on the users location and should only be delivered if the user is a certain distance from an object. I don't want to continually…
Jon Erickson
  • 1,876
  • 4
  • 30
  • 73
2
votes
3 answers

MKMapView Loads before LocationManager has got user location - cannot set Region to center on user location

I have an iOS app where Im loading a MKMapView as the app starts. I want to set the center of the "MKCoordinateRegion" to be the user latitude/longitude. However, the CLLocation Manager instance does not update the user location until after the…
banditKing
  • 9,405
  • 28
  • 100
  • 157
2
votes
1 answer

Custom user location image not centered on pin

So I'm really confused. I used: - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id )annotation { static NSString* AnnotationIdentifier = @"Annotation"; MKPinAnnotationView *pinView = (MKPinAnnotationView…
barndog
  • 6,975
  • 8
  • 53
  • 105
2
votes
2 answers

Track selection of user location annotation in MKMapView

I have an iPhone app that zooms to the nearest city of the user's location and I want the user to be able to double tap on the userLocation annotation and have the map zoom into about a block or so. How do I get the userLocation annotation to…
barndog
  • 6,975
  • 8
  • 53
  • 105
2
votes
2 answers

Create a iOS6 Maps MKUserTrackingBarButtonItem button

I want to create a MKUserTrackingBarButtonItem the same way iOS6 have it. Like a floating UIBarButtonItem. ( http://cl.ly/image/1Q1K2S1A1H3N ) Can you give some advice in how to achieve this? Thx!
jcalonso
  • 1,473
  • 13
  • 19
1 2
3
9 10