Roo/bootstrap/LocationPicker.js
authorEdward <edward@roojs.com>
Fri, 22 May 2015 08:56:20 +0000 (16:56 +0800)
committerEdward <edward@roojs.com>
Fri, 22 May 2015 08:56:20 +0000 (16:56 +0800)
Roo/bootstrap/LocationPicker.js

index 9ff4bca..fbe757c 100644 (file)
@@ -188,13 +188,12 @@ Roo.extend(Roo.bootstrap.LocationPicker, Roo.bootstrap.Component,  {
         this.setPosition(new google.maps.LatLng(latitude, longitude));
     },
     
-    getPosition: function() 
+    getCurrentPosition: function() 
     {
-        Roo.log('run??!!');
-//        return {
-//            latitude: this.gMapContext.location.lat(),
-//            longitude: this.gMapContext.location.lng()
-//        };
+        return {
+            latitude: this.gMapContext.location.lat(),
+            longitude: this.gMapContext.location.lng()
+        };
     },
     
     address_component_from_google_geocode: function(address_components)