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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:43:41+00:00 2026-06-13T14:43:41+00:00

My team and I are having an issue with a google map object in

  • 0

My team and I are having an issue with a google map object in our rails app.

Bascially, we have a database. one of the tables has 9 rows in it, each with location attributes. When the page with the google map on it loads, it querys the database, grabs all the location attributes for those 9 rows into an array, loops through and sets markers on the map at all 9 locations, then sets a marker where the user currently is, then puts a 500M radius around said user. This all works beautifully (I’m rather impressed as I’ve never done anything like this before). However, we made a page accessible by mobile devices such as an ipad. My team members worked all that out, it works good.

We are now running into a weird issue. When I navigate to the page.mobile on my laptop to view the mobile page in my browser, AND if I connect and navigate there on my ipad, what it does is it loads the map, all the markers, the users marker, the radius, then stop for a second, then clears all markers and the radius and reloads the map at coords 0,0 (middle of the ocean). I can’t figure out why it does that? Theres no excecuting script after the map loads.. the function that populates the map and all that is the last javascript function that I have excecuting. No errors come up in the console, nothing happens in the rails server after the map loads, the last thing to load is assets/beachflag.png (for the users location), the map also still works fine, just that all the markers and things are gone.

The desktop version seems to work fine also.

Has anyone else seen a similar issue? I need help… This is messedddd up!

p.s. if it matters im using the latest versions of rails and ruby

  • 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-13T14:43:42+00:00Added an answer on June 13, 2026 at 2:43 pm

    @rthbound No, just using the javascript api. All the google maps stuff is done with javascript.

    regarldess I figured it out. I had a function in my javascript file to initialize the map. I was calling it twice on the page, Once in a script tag on the page, once in the onload function of the body tag. The onload happened last, thus after the map was populated, thus clearing the map and setting it to 0,0

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

Sidebar

Related Questions

I'm having an issue with duplicates being inserted on refresh. Our team here decided
Im having a weird compile issue using the Google App engine in java using
Our team recently upgraded to TeamCity 4.5.4 but we're having trouble with TeamCity running
my team have built many tools for our project using win forms and Visual
We are using TFS for team builds and have a scenario where our application
Having a bit of a weird issue... In my AppDelegate.m I have the following:
Our team are having big issues with the JQuery countdown and we really need
I am having an issue. In preferences-general-keys I set up ctrl+alt+c team->commit for svn
I had a discussion with our development team to have a local MTA installed
My development team has run into a design issue. I'm hoping someone can help

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.