Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Map JS API changed event.latLng.* property names

Did Google Maps just changed the property names from event.latLng.d to event.latLng.A (Latitude) and from event.latLng.e to event.latLng.k (Longitude)?

I just noticed cause an entire webapp function just broke down and I was like 2 hours looking for it until I decided to log responses from Google Maps. It also changed on TextSearch from Places Library

The question would be why? did they notified? is this a normal thing? give me something please

like image 698
Christopher Francisco Avatar asked Jan 10 '23 22:01

Christopher Francisco


1 Answers

Oh I understand now, those properties are supposed to be private attributes. Thanks again Javascript...

Answer: correct way of getting latitude and longitude would be latLng.lat() and latLng.lng()

like image 176
Christopher Francisco Avatar answered Jan 18 '23 12:01

Christopher Francisco