From 9ec6f1c52890ff73f89ef59cbf78a3930e0a1d1e Mon Sep 17 00:00:00 2001 From: Anna Sobiepanek Date: Mon, 10 Jan 2011 17:32:40 -0500 Subject: [PATCH] fixed geocoder location [#252 state:peer-review-requested] --- plugins/googleMap/popcorn.googleMap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/googleMap/popcorn.googleMap.js b/plugins/googleMap/popcorn.googleMap.js index 83184ab..33dca4d 100644 --- a/plugins/googleMap/popcorn.googleMap.js +++ b/plugins/googleMap/popcorn.googleMap.js @@ -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(); } }); } -- 2.43.0