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 {
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 ) {
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 ) ;
0 commit comments