Skip to content

Commit 5fbfdf4

Browse files
committed
#56 added property 'markerDraggable'
1 parent 8b647fb commit 5fbfdf4

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

dist/locationpicker.jquery.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
/*! jquery-locationpicker - v0.1.13 - 2016-09-02 */
1+
/*! jquery-locationpicker - v0.1.13 - 2016-09-07 */
22
(function($) {
33
function GMapContext(domElement, options) {
44
var _map = new google.maps.Map(domElement, options);
55
var _marker = new google.maps.Marker({
66
position: new google.maps.LatLng(54.19335, -3.92695),
77
map: _map,
88
title: "Drag Me",
9-
draggable: options.draggable,
9+
draggable: options.markerDraggable,
1010
icon: options.markerIcon !== undefined ? options.markerIcon : undefined
1111
});
1212
return {
@@ -306,7 +306,8 @@
306306
locationName: settings.locationName,
307307
settings: settings,
308308
draggable: settings.draggable,
309-
markerIcon: settings.markerIcon
309+
markerIcon: settings.markerIcon,
310+
markerDraggable: settings.markerDraggable
310311
});
311312
$target.data("locationpicker", gmapContext);
312313
google.maps.event.addListener(gmapContext.marker, "drag", function(event) {
@@ -353,6 +354,7 @@
353354
onchanged: function(currentLocation, radius, isMarkerDropped) {},
354355
onlocationnotfound: function(locationName) {},
355356
oninitialized: function(component) {},
356-
markerIcon: undefined
357+
markerIcon: undefined,
358+
markerDraggable: true
357359
};
358360
})(jQuery);

dist/locationpicker.jquery.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)