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

index 3e6fd0f..648d97d 100644 (file)
@@ -270,17 +270,22 @@ Roo.extend(Roo.bootstrap.LocationPicker, Roo.bootstrap.Component,  {
         
         var _map = new google.maps.Map(this.el.dom, this);
         var _marker = new google.maps.Marker({
-            position: position,
-            map: _map,
-            title: this.markerTitle,
-            draggable: this.draggable
+            
+             map: map,
+            draggable: true,
+            animation: google.maps.Animation.DROP,
+            position: {lat: 59.327, lng: 18.067}
+            //position: position,
+            //map: _map,
+            //title: this.markerTitle,
+            //draggable: this.draggable
         });
         
         return {
             map: _map,
             marker: _marker,
             circle: null,
-            location: position,
+            location: {lat: 59.327, lng: 18.067}, // position,
             radius: this.radius,
             locationName: this.locationName,
             addressComponents: {