From: Anna Sobiepanek Date: Mon, 10 Jan 2011 22:32:40 +0000 (-0500) Subject: fixed geocoder location [#252 state:peer-review-requested] X-Git-Tag: v0.2~3^2~1^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=9ec6f1c52890ff73f89ef59cbf78a3930e0a1d1e;p=popcorn-js.git fixed geocoder location [#252 state:peer-review-requested] --- 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(); } }); }