Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8730173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:57:54+00:00 2026-06-13T08:57:54+00:00

So What i need to do here is, I need to show Two users

  • 0

So What i need to do here is, I need to show Two users locations on the map with the Default Blue Marble Drop.

Task is, a user-A will keep uploading current location coordinates every 5-10 secs to web-server, from there the user-B will be pulling that location every 5-10 secs. So on the MKMapView, User-B will be shown his own current location with the default location annotation, but i also need to show User-A’s location on the User-B’s mapView with some annotation.

Now i can not use Pin Annotation as the location will be updating every 5-10 secs. The Default User Annotatio (Blue Marble Drop) has to be shown for second User’s Pulled Location so that a user can get that the location of second User is not static, but on the move. Pin Annotation kind of suggest that the location is static.

How can i Achieve that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:57:56+00:00Added an answer on June 13, 2026 at 8:57 am
    -(void)updateLocation
    {// this will update your location
        NSString *latitude = @"0.0";
        NSString *longitude=@"0.0";
        MyAnnotation *ann = [[MyAnnotation alloc] initWithLatitude:latitude Longitude:longitude];
        [self.theMapView removeAnnotations:[self.theMapView annotations]];
        [self.theMapView performSelectorOnMainThread:@selector(addAnnotation:) withObject:ann waitUntilDone:YES];
    
        MKCoordinateRegion region = MKCoordinateRegionMake(CLLocationCoordinate2DMake(0.0, 0.0), MKCoordinateSpanMake(0.1f, 0.1f));
        [self.theMapView setRegion:region];
    
    }
    
    - (MKAnnotationView *) mapView:(MKMapView *)mapView1 viewForAnnotation:(id <MKAnnotation>) annotation{
    
        // if it's the user location, just return nil.
        if ([annotation isKindOfClass:[MKUserLocation class]])
            return nil;
        // try to dequeue an existing pin view first
        static NSString* AnnotationIdentifier = @"AnnotationIdentifier";
        MKAnnotationView *pinView = [[MKAnnotationView alloc]
                                      initWithAnnotation:annotation reuseIdentifier:AnnotationIdentifier];
        pinView.image = [UIImage imageNamed:@"BlueMarbleDrop"];
    
        pinView.annotation = annotation;
        return pinView;
    }
    

    Here is the BlueMarbleDrop.png

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to hide the present div and show next hide here is my
I have a doubt here, I need to show a pie-chart in SSRS, for
I have a slightly complex problem here. I need to show to the client
i need some help here. I will like to transfer an Jpg or PNG
I'm trying to find the leagues (lid) where two users are apart of. Here
I need to represent a form, called E-Report, where users will add data. Every
I'm building a website where I need to time users' tasks, show them the
I basically need to show a wait window to the user. For this i
OK, my need here is to save whatever typed in the rich text box
I really need help here. I'm desperate at this point. I have NSOperation that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.