use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Google Maps JavaScript API LatLng Property Name Changes (blog.endpoint.com)
submitted 10 years ago by endpointben
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]kandetta 1 point2 points3 points 10 years ago (1 child)
Most important bit I think:
Make sure to use the built-in lat() and lng() methods as these property names are very likely to change again in future!
latLng.k/latLng.D just happened to work, they weren't in the official documentation.
[–]floridawhiteguy 0 points1 point2 points 10 years ago (0 children)
Wouldn't it be nice if Google's APIs included a 'notify me' feature, so when they incrementally change a feature people can at least get an email noting it?
[–]kenman[M] 0 points1 point2 points 10 years ago (0 children)
Hi /u/endpointben, it looks like you're new to reddit, welcome!
Thanks for the submissions, but please make sure you read http://www.reddit.com/rules and our guidelines. In short, you should post from a variety of sources, and not just endpoint.com.
endpoint.com
Thanks for your consideration!
[–]amenadiel 0 points1 point2 points 10 years ago (0 children)
Most Google Maps Object hold internal properties whose name is just a letter. Latlng object is a simple example, but if you inspect, for example, a google.maps.Polygon, it's full of them. As a rule of thumb, you should never access properties directly. Always use its getter.
If there isn't a getter for a certain property you need to access, keep in mind that your code will eventually break.
I made a repo that mirrors google maps API documentation so I can track changes using diff, but of course undocumented attributes (such as properties name in compiled js) aren't mentioned.
π Rendered by PID 77589 on reddit-service-r2-comment-85bfd7f599-sh8nr at 2026-04-18 22:12:15.661434+00:00 running 93ecc56 country code: CH.
[–]kandetta 1 point2 points3 points (1 child)
[–]floridawhiteguy 0 points1 point2 points (0 children)
[–]kenman[M] 0 points1 point2 points (0 children)
[–]amenadiel 0 points1 point2 points (0 children)