Wednesday 7 December 2016

javascript - Uncaught ReferenceError: lat is not defined







i have problem with my script, i want to get value lat, lng from pos function, but when i inspect element in console i get this error :



"Uncaught ReferenceError: lat is not defined TEST.html:30
(anonymous function)"




line 30 is : var latlng = new google.maps.LatLng (lat, lng);
This is my full code :




No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...