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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:26:41+00:00 2026-05-28T18:26:41+00:00

i have created an application in jquery and google maps javascript v3 , in

  • 0

i have created an application in jquery and google maps javascript v3 , in which i am displaying a user’s current location after a button click.

Now the problem is some times i got pretty fine current location and sometimes at the same place its showing my current location miles away but again when i refresh the page i again got the pretty fine current location.

does anyone know how to get rid off pressing refresh button again so a user doesn’t has to press the refresh on their mobile browser ??

Note:
I am testing this application in android phone which has a default browser.

Page #1 has a button and Page #2 has a map but the Page #1 and Page #2 are combined in a single
jQuery HTML page.

  • 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-05-28T18:26:42+00:00Added an answer on May 28, 2026 at 6:26 pm

    Why don’t you try adding some logic using the accuracy parameter off the geolocation object (position.coords.accuracy). For example,

    //if accuracy is to low
    if (position.coords.accuracy =< 500) {
        //redo the geolocation
        navigator.geolocation.getCurrentPosition(function(position) {
        //update marker
        marker.setPosition(new google.maps.LatLng(position.coords.latitude, position.coords.longitude)})
    }
     , displayError);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a sizable application javascript and jQuery. However my file structure is
I am using JQuery and cakephp for my application. I have created a select
I have application that brings response via Ajax and creates 5-20 new jQuery click
I have created an application which needs 'hand-over' to the support group in the
I have created an application that runs in the taskbar. When a user clicks
I have created an application which needs to have a profile box tab which
I have created an ASP.NET Webforms web application which basically inetracts with the code
I have a simple web application in which I have created a wizard, each
I have created a JavaScript application that has a lot of array manipulations (sorting,
I have created a sample web application using jQuery Mobile. I have created two

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.