Skip to content

Commit 789fc67

Browse files
author
Dmitry Berezovsky
committed
2 parents 3ef159b + c5efc4f commit 789fc67

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

locationpicker.jquery.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
position: new google.maps.LatLng(54.19335, -3.92695),
1111
map: _map,
1212
title: "Drag Me",
13-
draggable: true
13+
draggable: options.draggable
1414
});
1515
return {
1616
map: _map,
@@ -79,7 +79,7 @@
7979
});
8080
} else {
8181
if (callback) {
82-
callback.call(this, gmapContext);
82+
callback.call(this, gMapContext);
8383
}
8484
}
8585

@@ -245,7 +245,8 @@
245245
streetViewControl: false,
246246
radius: settings.radius,
247247
locationName: settings.locationName,
248-
settings: settings
248+
settings: settings,
249+
draggable: settings.draggable
249250
});
250251
$target.data("locationpicker", gmapContext);
251252
// Subscribe GMap events
@@ -278,10 +279,11 @@
278279
},
279280
enableAutocomplete: false,
280281
enableReverseGeocode: true,
282+
draggable: true,
281283
onchanged: function(currentLocation, radius, isMarkerDropped) {},
282284
onlocationnotfound: function(locationName) {},
283285
oninitialized: function (component) {}
284286

285287
}
286288

287-
}( jQuery ));
289+
}( jQuery ));

0 commit comments

Comments
 (0)