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

index 04c3af2..489e7f0 100644 (file)
@@ -187,12 +187,12 @@ Roo.extend(Roo.bootstrap.LocationPicker, Roo.bootstrap.Component,  {
         this.setPosition(new google.maps.LatLng(latitude, longitude));
     },
     
-    position: function() 
+    getPosition: function() 
     {
-        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)