Roo/bootstrap/LocationPicker.js
authoredward <edward@roojs.com>
Tue, 13 Oct 2015 10:29:41 +0000 (18:29 +0800)
committeredward <edward@roojs.com>
Tue, 13 Oct 2015 10:29:41 +0000 (18:29 +0800)
Roo/bootstrap/LocationPicker.js

index 42a0b96..977860f 100644 (file)
@@ -268,8 +268,7 @@ Roo.extend(Roo.bootstrap.LocationPicker, Roo.bootstrap.Component,  {
         var position = new google.maps.LatLng(this.latitude, this.longitude);
         
         var _map = new google.maps.Map(this.el.dom, {
-            latitude: this.latitude,
-            longitude: this.longitude,
+            center: position,
             zoom: this.zoom,
             mapTypeId: this.mapTypeId,
             mapTypeControl: this.mapTypeControl,