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

  • Home
  • SEARCH
  • 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 7616733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:57:42+00:00 2026-05-31T02:57:42+00:00

I am using Google Maps v3 to geocode addresses on a site and it

  • 0

I am using Google Maps v3 to geocode addresses on a site and it works fine in all browsers except, apparently, on mobile devices. More specifically, right now I am merely trying to fix it for IOS devices (iPad/iPhone/iPod Touch).

The map application itself appears to be loading because I can see the Google logo, the Terms of Use link, the Map and Satellite buttons, and even the little street view icon (which is grayed out by the way).

Below is a screenshot of what the map looks like on the iPad. Can anyone point me in the right direction of what might be causing this or how to debug it on IOS devices?

iPad screenshot of GMaps v3

Thanks!


EDIT

Below is the core part of the code being used to render the map.

function renderMap(elem, lat, lng) {
    lat = (null == lat || undefined == lat) ? -14.397 : lat;
    lng = (null == lng || undefined == lng) ? 120.644 : lng;
    var latlng = new google.maps.LatLng(lat, lng);
    var map    = new google.maps.Map(
        document.getElementById(elem.attr('id')), { 
            zoom: 11, 
            center: latlng, 
            mapTypeId: google.maps.MapTypeId.ROADMAP
        }
    );

    try {
        var marker = new google.maps.Marker({ map: map, position: latlng });
    } catch (err) {
        MAP_ERRORS.push(err);
    }
}

function initialize() {
    var msie7 = (navigator.appVersion.indexOf('MSIE 7.') == -1) 
        ? false : true;

    if (true != msie7) {
        $('#my-content-div' + ' > .gmap').each(function(index) {
            // these are hidden divs that contain these values
            var lat = $(this).parent().find('.lat').html();
            var lng = $(this).parent().find('.lng').html();
            renderMap($(this), lat, lng);
        });
    }
}
initialize();

EDIT 2

I think I may have just discovered the real problem. It appears that the iPad is trying to convert the hidden latitude into a phone number. I used a JS trick to view the page source on the iPad and specifically for the latitude (I think because it’s a positive number) Safari converted it into a link! The source appears as follows:

<!-- iPad source -->
<span class="hidden lat">
    <a href="tel:36.783760070801">36.783760070801</a>
</span>

And in all other browsers where it works, the source looks like it should:

<!-- Firefox 10.0.2 source (CORRECT) -->
<span class="hidden lat">36.783760070801</span>

Any new ideas?

  • 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-31T02:57:43+00:00Added an answer on May 31, 2026 at 2:57 am

    After finally getting to view the page source on the iPad I was able to deduce the problem down to the hidden latitude link which iPad Safari was converting into a phone number. I searched Stack Overflow and found this: https://stackoverflow.com/a/227238/486233

    <meta name="format-detection" content="telephone=no">
    

    And that fixed it.

    Thanks to everyone for their help!

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

Sidebar

Related Questions

I'm using http://maps.google.com/maps/geo ? web service to geocode some addresses. The problem I have
I am using the following method to reverse geocode a google maps latlng: [GClientGeocoder.getLocations(address:String,
All the examples I've come across using Google Maps API seem to show a
I am using Google maps v3 geocoder to geocode an address then pass the
I'm using google maps API. I use a $.getJSON on .keyup() to geocode the
How do you do a Reverse Geocode on the clientside using Google Maps V3
I am using google maps geocoder to geocode a zipcode and I want it
I'm trying to use the Google maps geocode API to return all parks for
I'm using the following code to geocode a supplied address using the Google Maps
I am trying to geocode a batch of around 400 addresses using the Google

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.