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 8575513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:42:41+00:00 2026-06-11T19:42:41+00:00

I have the following functionality working in my app. I Use MyLocationOverlay to get

  • 0

I have the following functionality working in my app.

  1. I Use MyLocationOverlay to get my current location.
  2. I extended MyLocationOverlay in order to be able to drop a custom marker instead of the blinking blue marker.

I need help on the last requirement. I simply want a marker to stay fixed on the location that MyLocationOverlay says it found originally and not move around as it jumps from satellite to satellite.

What are my options for creating this type of user experience?

  • 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-11T19:42:42+00:00Added an answer on June 11, 2026 at 7:42 pm

    I would recommend saving off the first geopoint that gets fed into the drawMyLocation function inside the CustomLocationOverlay and using that instead of the myLocation fed to the function.

     int intFirstGeoPoint = 0;
     GeoPoint FirstGeoPoint;
    
    protected void drawMyLocation(Canvas canvas, MapView mapView, Location lastFix, GeoPoint myLocation, long when) {
    
            if(intFirstGeoPoint == 0){
                 FirstGeoPoint=myLocation;
                 intFirstGeoPoint=1;
            }else{
                 myLocation=FirstGeoPoint;
            }
    
            // translate the GeoPoint to screen pixels
            Point screenPts = mapView.getProjection().toPixels(myLocation, null);
            ...
            ...
    

    You could also capture this location and create a new DrawableMapOverlay that only draws this point instead of hijacking the LocationOverlay

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

Sidebar

Related Questions

We are currently working on an iPad application which will have the following functionality:
I want the following functionality using php I have a csv file. Each file
Basically I have a new client that is after the following functionality from her
I have following script that executes all the .reg files in the current directory.
I have following question on adobe omniture How we can register an iPhone app
I have to use Sync Framework 2.0 in our WPF app that will contain
I'm working on a view-based iPhone app that has the following flow: search ->
I'm having trouble understanding how to get the following working in interface builder. I've
I am working on one app where I am giving functionality to user to
I have an app and there is some basic functionality that needs to be

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.