]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
fixed geocoder location [#252 state:peer-review-requested]
authorAnna Sobiepanek <annaopensource@gmail.com>
Mon, 10 Jan 2011 22:32:40 +0000 (17:32 -0500)
committerAnna Sobiepanek <annaopensource@gmail.com>
Mon, 10 Jan 2011 22:32:40 +0000 (17:32 -0500)
plugins/googleMap/popcorn.googleMap.js

index 83184ab9f3f6365f1dde4f684d64adaac6732adb..33dca4d71e53b1a17d284b3b6fa65fc93313eee4 100644 (file)
@@ -81,8 +81,8 @@ var googleCallback;
               var geocoder = new google.maps.Geocoder();
               geocoder.geocode({ 'address': options.location}, function(results, status) {
                 if (status === google.maps.GeocoderStatus.OK) {
-                  options.lat  = results[0].geometry.location.wa;
-                  options.long = results[0].geometry.location.ya; 
+                  options.lat  = results[0].geometry.location.lat();
+                  options.long = results[0].geometry.location.lng(); 
                 } 
               });
             }