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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:37:02+00:00 2026-06-01T03:37:02+00:00

This question is already answered. I discovered what the problem is. But, I’m posting

  • 0

This question is already answered. I discovered what the problem is.
But, I’m posting the Q&A here because others may be in the same predicament.

My google map code came from samples I found on the web.

In the “bad” code there was a line that looked like this:

var latlng= new google.maps.LatLng(results[0].geometry.location.Ua, results[0].geometry.location.Va);

This code worked until last night.
Using firebug to inspect the objects, it turns out that location is now of the form: {Ta: number, Ua: number}

My immediate fix was to use the lat() and lng() methods whenever I required the lat and/or lng.

The other fix was to instantiate my map in a more intelligent fashion.

Yes, it was silly rely upon properties uncovered deep in an object using the firebug inspector. Yes, being a google maps noob and relying on copy paste with little or no knowledge reaped its just rewards.

But, doing a quick google seach found many folks (other than the “sample” I borrowed from) also using the .Va property directly.

Hence the post here in case this is their problem too.

  • 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-01T03:37:04+00:00Added an answer on June 1, 2026 at 3:37 am

    In case you’re interested in why this happened, it’s simple: the sample was using undocumented internals of the API, so when Google updated the Maps JS file, it broke.

    More specifically, Ua and Va were auto-generated variable names resulting from minification. It looks like Google removed a variable in the original source and the labels shifted up (Ua,Va → Ta,Ua).

    I’ll bet I know exactly how the author of the bad sample came up with his code. He inspected a LatLng (the type of object in location in your example) in his browser’s dev tools, saw that those two oddly-named variables contained the data he wanted, and just went with it. Since the lat and lng methods are “hidden” in LatLng‘s prototype, he didn’t notice them.

    There are two lessons to be learned here:

    1. Always use documented API methods; anything else is an implementation detail that is subject to change.
    2. Don’t trust the code on some dude’s website is a good or even competent example of how to do things. This is especially true in the case of Google Maps, where there’s extensive documentation and official examples.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question is probably already answered here, but I couldn't find the answer? Is
sorry if this question has already been answered somewhere else, but I couldn't find
Sorry if this question is answered already, but I didn't find a suitable answer.
This may well be a dumb question and if this has already been answered
Sorry if this is a silly question or if it's been answered already, but
Preamble So, this question has already been answered, but as it was my first
This question has probably already been answered somewhere but I'm having a hard time
I apologize if this question has been answered already, but I cannot seem to
First time posting, please let me know if this question has already been answered!
Sorry if this question has already been answered but I can't find an answer.

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.